示例#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());
    }