Ejemplo n.º 1
0
 public void player_attack_animation()
 {
     foreach (Action _action in current_actions)
     {
         if (_action._ability.Impact_object)
         {
             foreach (GameObject target in _action._target)
             {
                 GameObject _impact = Instantiate(_action._ability.Impact_object, target.transform.position, transform.rotation) as GameObject;
                 _impact.transform.localScale = new Vector3(_action._ability.impact_size, _action._ability.impact_size, _action._ability.impact_size);
             }
         }
     }
     theatre.Ability_Animation(player.gameObject, _current_ability);
 }