Esempio n. 1
0
        protected override void OnEnterInDamageState(MsgEnterInDamageState obj)
        {
            base.OnEnterInDamageState(obj);

            if (obj.oAtacado == gameObject)
            {
                enemyIa.OnStartDamageState(atkResponseTax, obj.atacante);
            }
        }
Esempio n. 2
0
 private void OnEnterInDamageState(MsgEnterInDamageState obj)
 {
     if (obj.oAtacado == gameObject)
     {
         bool   b             = UnityEngine.Random.Range(0, 2) == 0 ? true : false;
         string animationName = b?"dano1": "dano2";
         A.Play(animationName);
         A.SetBool(emDanoBool, true);
         A.SetBool(emDano_2Bool, true);
     }
 }