コード例 #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>();
 }
コード例 #2
0
ファイル: BunnyPlacement.cs プロジェクト: zaherj/zed-unity
 /// <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>();
     }
 }
コード例 #3
0
ファイル: Bunny.cs プロジェクト: jdawahare/zed-unity
 /// <summary>
 /// Sets the BunnySpawner.
 /// </summary>
 /// <param name="spawner"></param>
 public void SetMySpawner(BunnySpawner spawner)
 {
     bunnyspawner = spawner;
 }