/// <summary> /// Awake is used to initialize any variables or game state before the game starts. /// </summary> void Awake() { canspawnbunny = false; tracker = GetComponent <ZEDControllerTracker_DemoInputs>(); zedPlane = FindObjectOfType <ZEDPlaneDetectionManager>(); bunnySpawner = GetComponent <BunnySpawner>(); }
/// <summary> /// Awake is used to initialize any variables or game state before the game starts. /// </summary> void Awake() { _canSpawnBunny = false; trackedObj = GetComponent <ZEDControllerTracker>(); zedPlane = FindObjectOfType <ZEDPlaneDetectionManager>(); bunnySpawner = GetComponent <BunnySpawner>(); if (!leftCamera) { leftCamera = ZEDManager.Instance.GetLeftCameraTransform().gameObject.GetComponent <Camera>(); } }
/// <summary> /// Sets the BunnySpawner. /// </summary> /// <param name="spawner"></param> public void SetMySpawner(BunnySpawner spawner) { bunnyspawner = spawner; }