Example #1
0
 public void registerHit(GameObject otherObj)
 {
     if (m_currentAttack != null)
     {
         m_currentAttack.onHitConfirm(otherObj);
         GetComponent <BasicMovement> ().onHitConfirm(otherObj);
     }
 }
Example #2
0
 public void registerHit(GameObject otherObj)
 {
     if (currentAttack != null)
     {
         currentAttack.onHitConfirm(otherObj);
         if (GetComponent <Player> ())              //Stopgap in order to test beat recognition power.
         {
             GetComponent <Player> ().onHitConfirm(otherObj);
         }
     }
 }