1
This commit is contained in:
@@ -79,6 +79,7 @@ public class VR2 : MonoBehaviour
|
||||
//PicoAPI._Instance.OpenTouPing();
|
||||
//PicoAPI._Instance.KillAppsByPidOrPackageName("com.pvr.picocast");
|
||||
Initialize();
|
||||
GameTools.CreateDirectory(Config.RootPath);
|
||||
Invoke("Init", 0.5f);
|
||||
|
||||
GlobalEventMgr.Listen<int>(GameEvent.EventAnimalSend, GameDataManage_EventAnimalSend);
|
||||
@@ -108,7 +109,7 @@ public class VR2 : MonoBehaviour
|
||||
void Init()
|
||||
{
|
||||
ReadConfig();
|
||||
|
||||
|
||||
|
||||
cameraTran = Camera.main.transform;
|
||||
statHight = Camera.main.transform.position.y;
|
||||
@@ -550,7 +551,7 @@ public class VR2 : MonoBehaviour
|
||||
db_otherPosition.y = 0;
|
||||
db_otherPosition.z = player.z/ Config.times;
|
||||
db_distance = Vector3.Distance(db_myPosition, db_otherPosition);
|
||||
//Debug.Log("多少米:"+ db_distance);
|
||||
//Debug.Log("多少米:"+ db_distance);
|
||||
if (db_distance < 5)
|
||||
player.gameObject.SetActive(true);
|
||||
else
|
||||
@@ -787,7 +788,7 @@ public class VR2 : MonoBehaviour
|
||||
switch (vrControl.volume)
|
||||
{
|
||||
case 0://启动
|
||||
|
||||
|
||||
break;
|
||||
case 1://暂停
|
||||
|
||||
|
||||
Reference in New Issue
Block a user