public ETool() { _processSpd = 0.0f; _swingType = SwingType.Dig; _materialType = MaterialType.Wood; _maxRange = 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; } }
public ETool(int pSpd, MaterialType mt, float mRange, SwingType st) { _processSpd = pSpd; _maxRange = mRange; _swingType = st; _materialType = mt; }