Esempio n. 1
0
        public bool Pode()
        {
            bool   retorno = false;
            KeyVar keyVar  = GameController.g.MyKeys;

            if (aposShift)
            {
                retorno = keyVar.VerificaAutoShift(shiftDeApos);
            }

            if (aposAutoShift)
            {
                retorno = keyVar.VerificaAutoShift(autoDeApos);
            }

            if (!aposShift && !aposAutoShift && (antesDeShift || antesDeAutoShift))
            {
                retorno = true;
            }

            if (antesDeShift)
            {
                retorno &= !keyVar.VerificaAutoShift(shiftDeAntes);
            }

            if (antesDeAutoShift)
            {
                retorno &= !keyVar.VerificaAutoShift(autoDeAntes);
            }


            return(retorno);
        }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     if (ExistenciaDoController.AgendaExiste(Start, this))
     {
         npcLuta = ativaLut.NPC_Luta;
         g       = GameController.g;
         keys    = g.MyKeys;
     }
 }
Esempio n. 3
0
        private void SetarSaveDates()
        {
            CharacterManager manager = GameController.g.Manager;

            variaveisChave = GameController.g.MyKeys;

            dados = manager.Dados;

            Vector3 X = manager.transform.position;
            Vector3 R = manager.transform.forward;


            posicao = new float[3] {
                X.x, X.y, X.z
            };
            rotacao = new float[3] {
                R.x, R.y, R.z
            };

            //   Debug.Log(X +" : "+ posicao[0]+" : "+posicao[1]+" : "+posicao[2]);
        }