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); }
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 }
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(); }
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); }
public virtual void AgainstCharge(ActCharge charge) { Debug.Assert(false); Debug.LogError("Action: AgainstCharge() not implemented"); }