예제 #1
0
        public void AnimalDestruction()
        {
            Debug.Log("You'll be destroyed");

            Destroy(currentAnimal, 30f);

            TailsManager tlsd = new TailsManager();

            tlsd.TailsPlacement();
        }
예제 #2
0
        public void Creation(GameObject _animalToCreate, string _rightAnimalTag)
        {
            Instantiate(_animalToCreate, new Vector3(0f, 0f, -5f), Quaternion.identity);

            //Setting right animal in TailsManager
            TailsManager ttm = new TailsManager();

            ttm.RightAnimalTagSetup(_rightAnimalTag);



            currentAnimal = _animalToCreate;

            //Play PigQuestion

            if (_animalToCreate == horseClone)
            {
                animalRotationVar = 0;
            }
            else
            {
                animalRotationVar++;
            }
        }