Пример #1
0
        /// <summary>Disable this Script and MalbersInput Script if it has it.</summary>
        public virtual void DisableAnimal()
        {
            enabled = false;
            MalbersInput MI = GetComponent <MalbersInput>();

            if (MI)
            {
                MI.enabled = false;
            }
        }
Пример #2
0
        public virtual void EnableControls(bool value)
        {
            if (Animal)
            {
                MalbersInput animalControls = Animal.GetComponent <MalbersInput>();

                if (animalControls)
                {
                    animalControls.enabled = value;
                }
                Animal.MovementAxis = Vector3.zero;     //Reset the movement
            }
        }
Пример #3
0
        public virtual void EnableControls(bool value)
        {
            if (Animal)
            {
                MalbersInput animalControls = Animal.GetComponent <MalbersInput>();

                if (animalControls)
                {
                    animalControls.enabled = value;
                }

                Animal.ResetInputs();
            }
        }
Пример #4
0
    private void Start()
    {
        lookAt        = GetComponent <LookAt>();
        lookAt.Target = Player;
        malbersInput  = GetComponent <MalbersInput>();
        Age           = GAME.dragonAge;

        //Prueba
        //Age = 1;
        //GAME.dragonMontura = true;
        //Age = 0.15f;

        transform.localScale = new Vector3(Age, Age, Age);

        malbersInput.movimiento = false;
        personajeMontado        = false;
        visible = true;
        activo  = true;
        checkColocarMontura();


        StartCoroutine(rutinaMovimiento());
    }