コード例 #1
0
 public ImmediateMeleeCommand(Transform character, Vector2 dir, MeleeAttack attack) : base(character, dir)
 {
     this.attack = attack;
 }
コード例 #2
0
 void Awake()
 {
     meleeAttack = GetComponent <MeleeAttack> ();
     rigidBody2D = GetComponent <Rigidbody2D> ();
 }
コード例 #3
0
 public SingleMeleeTowardsPlayerAction(Transform character)
 {
     this.character = character;
     attack         = character.GetComponent <MeleeAttack> ();
 }