Пример #1
0
 public DoorStateManager GetBossDoor()
 {
     if (this.bossDoor == null)
     {
         this.bossDoor = FindObjectOfType <BossDoorMarker>().GetComponent <DoorStateManager>();
     }
     return(this.bossDoor);
 }
Пример #2
0
 /// <summary>
 /// Gets the target door.
 /// </summary>
 /// <returns>The target door.</returns>
 public DoorStateManager GetTargetDoor()
 {
     // Must not enter this. Not ensured
     if (this.targetDoor == null)
     {
         this.targetDoor = GameObject.FindObjectsOfType <DoorStateManager> ()[1];
     }
     return(this.targetDoor);
 }