Example #1
0
 public void ChangeForce(float newForce)
 {
     if (state == BattleState.PLAYER1TRUN)
     {
         force.text = newForce.ToString();
         playerOneWeapon.ChangeForce(newForce);
     }
     else
     if (state == BattleState.PLAYER2TURN)
     {
         force.text = newForce.ToString();
         playerTwoWeapon.ChangeForce(newForce);
     }
 }