Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     if (icon_Plant_Behaviour == null)
     {
         icon_Plant_Behaviour = gameObject.transform.parent.gameObject.GetComponentInChildren <Icon_Plant_Behaviour>();
     }
     plantPoint = gameObject.transform.parent.gameObject.GetComponent <PlantPoint>();
     StartCoroutine(EatPlant());
     StartCoroutine(RotateRat());
 }
 private void Start()
 {
     iconPlantBehaviouScript = GetComponentInChildren <Icon_Plant_Behaviour>();
     iconPlantBehaviouScript.gameObject.SetActive(false);
 }