Exemplo n.º 1
0
 /// <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>();
 }
Exemplo n.º 2
0
 /// <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>();
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Sets the BunnySpawner.
 /// </summary>
 /// <param name="spawner"></param>
 public void SetMySpawner(BunnySpawner spawner)
 {
     bunnyspawner = spawner;
 }