Ejemplo n.º 1
0
 public ETool()
 {
     _processSpd = 0.0f;
     _swingType = SwingType.Dig;
     _materialType = MaterialType.Wood;
     _maxRange = 0;
 }
Ejemplo n.º 2
0
 private void SwingCheck()
 {
     if (rewiredPlayer.GetButtonDown("LeftWindup"))
     {
         //forehand
         type = SwingType.Forehand;
         ForeHandPivot.SetActive(true);
         state = PlayerState.SwingWindup;
     }
     else if (rewiredPlayer.GetButtonDown("RightWindup"))
     {
         //backhand
         type = SwingType.Backhand;
         BackHandPivot.SetActive(true);
         state = PlayerState.SwingWindup;
     }
 }
Ejemplo n.º 3
0
 public ETool(int pSpd, MaterialType mt, float mRange, SwingType st)
 {
     _processSpd = pSpd;
     _maxRange = mRange;
     _swingType = st;
     _materialType = mt;
 }