// Use this for initialization void Start() { worldTracker = GameObject.Find("WorldTracker").GetComponent <WorldTracker>(); myY = this.gameObject.transform.position.y; purchaceUI.SetActive(false); water = GameObject.Find("Ocean"); }
void Start() { cam = GameObject.Find("First Person Camera").GetComponent <Camera>(); worldTracker = gameObject.GetComponent <WorldTracker> (); const int SLEEP_TIMEOUT = 15; Screen.sleepTimeout = SLEEP_TIMEOUT; canPlacePortal = true; canChangeWorld = true; }
// Use this for initialization void Start() { tangoCam = GameObject.Find("First Person Camera"); myCam = gameObject.GetComponent <Camera> (); worldTracker = GameObject.Find("UIManager").GetComponent <WorldTracker> (); worldModel = worldTracker.worlds [worldTracker.curWorld]; // Optional ability to give each world a custom skybox if (worldTracker.skyboxes [worldTracker.curWorld] != null) { gameObject.GetComponent <Skybox> ().material = worldTracker.skyboxes [worldTracker.curWorld]; } myStartPos = worldModel.transform.Find("Center").transform.position; transform.position = myStartPos; }
private void Start() { worldTracker = GameObject.Find("WorldTracker").GetComponent <WorldTracker>(); water = GameObject.Find("Ocean"); }
// Use this for initialization void Start() { worldTracker = GameObject.Find("WorldTracker").GetComponent <WorldTracker>(); }