/* * Attempts to hoe the action tile */ void TryHoe() { bool isUsingWeapon = RBInput.GetButtonDownForPlayer(InputStrings.WEAPON1, PlayerIndex, playerDevice); if (isUsingWeapon) { if (actionTile != null) { GroundTile tile = (GroundTile)actionTile.GetComponent <GroundTile> (); tile.Hoe(); AudioSource.PlayClipAtPoint(digSound, transform.position); } else { AudioSource.PlayClipAtPoint(digSoundFail, transform.position); } } }