Пример #1
0
 private void Set(Avatar myAva, Avatar otherAva)
 {
     this.poActAttack      = new ActAttack(myAva, otherAva);
     this.poActSuperAttack = new ActAttack(myAva, otherAva);
     this.poActCharge      = new ActCharge(myAva, otherAva);
     this.poActDefend      = new ActDefend(myAva, otherAva);
 }
Пример #2
0
        public override void AgainstCharge(ActCharge charge)
        {
            Debug.LogError("Defend empty!");

            this.pMyPlayerAnim.GetComponent <Animator>().SetTrigger("Defend");
            this.pOtherAnim.GetComponent <Animator>().SetTrigger("Charge");
            // Nothing for now
        }
Пример #3
0
        public override void AgainstCharge(ActCharge charge)
        {
            Debug.LogError("Equal-Charge succeed!");

            this.pMyPlayerAnim.GetComponent <Animator>().SetTrigger("Charge");
            this.pOtherAnim.GetComponent <Animator>().SetTrigger("Charge");
            this.pMyAvatar.GatherSP();
        }
Пример #4
0
        public override void AgainstCharge(ActCharge charge)
        {
            Debug.LogError("Attack succeed!");

            this.pMyPlayerAnim.GetComponent <Animator>().SetTrigger(this.power > 1 ? "SuperAttack" : "Attack");
            this.pOtherAnim.GetComponent <Animator>().SetTrigger("Hurt");

            // Attack succeed!
            this.pMyAvatar.ConsumeSP(this.power > 1 ? 3 : 1);

            this.pOtherAvatar.TakeDamage(this.power);
        }
Пример #5
0
 public virtual void AgainstCharge(ActCharge charge)
 {
     Debug.Assert(false);
     Debug.LogError("Action: AgainstCharge() not implemented");
 }