Pin.Lower C# (CSharp) Method

Lower() public method

public Lower ( ) : void
return void
    public void Lower()
    {
        if (IsStanding ()) {
            rigidbody.useGravity = true;
            transform.Translate (new Vector3 (0, -distanceToRaise, 0));
        }
    }

Usage Example

Example #1
0
 public void LowerPins()
 {
     foreach (Pin pin in GameObject.FindObjectsOfType <Pin>())
     {
         pin.Lower();
     }
 }
All Usage Examples Of Pin::Lower