private void Start()
 {
     roomColor    = GetComponentInParent <LeverTrigger>();
     itemCharge   = GameObject.Find("Perso").GetComponent <ItemCharge>();
     activeItem   = GameObject.Find("DetectionZone").GetComponent <ItemDetection>();
     detectPlayer = GameObject.Find("EnnemisDetection").GetComponent <YT_RoomTransition>();
     hiveMind     = false;
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     numberofDoors     = doors.Length;
     ennemisDectection = GetComponentInChildren <YT_RoomTransition>();
 }