-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvisualcliff.cs
More file actions
52 lines (43 loc) · 1.2 KB
/
Copy pathvisualcliff.cs
File metadata and controls
52 lines (43 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class visualcliff : MonoBehaviour
{
// Start is called before the first frame update
//public GameObject Player;
//public float t1 = 0f;
//public float t2 = 0f;
//public int trial_num = 0;
//public float x = 0f;
//public bool teleport=false;
void Start()
{
}
// Update is called once per frame
void Update()
{
//t1 += Time.deltaTime;
//x = Player.transform.position.x;
//if (t1>30)
//{
// trial_num++;
// t1 = 0;
// teleport =true;
//}
////when mouse close to one edge
//if (Mathf.Abs(Player.transform.position.x) > 5f | Mathf.Abs(Player.transform.position.z) > 5f)
//{
// t2 += Time.deltaTime;
// if (t2 > 10 | Mathf.Abs(Player.transform.position.x )> 10f | Mathf.Abs(Player.transform.position.z) > 10f)
// {
// t2 = 0;
// trial_num++;
// teleport = true;
// }
//}
//if (trial_num >4)
//{
// Application.Quit();
//}
}
}