Beispiel #1
0
        private void Start()
        {
            animalController = EnemyManager._instance.enemy.GetComponentInChildren <AnimalController>();
            animalData       = animalController.animalData;

            nameText.text = animalController.animalData.AnimalName;
            CheckWhereAnimal();
        }
Beispiel #2
0
 protected virtual void Awake()
 {
     animalData       = Instantiate(animalData) as AnimalGameData;
     states           = new List <IState>();
     activeSkillQueue = new Queue <SkillData>();
     animator         = GetComponent <Animator>();
     InitState();
 }
Beispiel #3
0
 private void Start()
 {
     if (AnimalManager._instance.animals[index] == null)
     {
         gameObject.SetActive(false);
     }
     if (DataManager._instance.gogoAnimalIndexes[index] != -1)
     {
         animalController = AnimalManager._instance.animals[index];
         animalData       = animalController.animalData;
         nameText.text    = animalController.animalData.AnimalName;
         CheckWhereAnimal();
     }
     else
     {
         gameObject.SetActive(false);
     }
 }