public DoorStateManager GetBossDoor() { if (this.bossDoor == null) { this.bossDoor = FindObjectOfType <BossDoorMarker>().GetComponent <DoorStateManager>(); } return(this.bossDoor); }
/// <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); }