public void Action_explode() { gunBeginDamage(); state = State_Damage; Explode explode = Explode.createFromPool(); explode.playAtPos(gunRoot.position); }
void Action_Normal(ContactInfo contactInfo) { Player.killHelicopterNum++; Player.score += scoreContribute; MainRes.scoreNum.display(Player.score); Explode explode = Explode.createFromPool(); explode.playAtPos(transform.position); canDestroy = true; }