C# Class CoconutThrower, unity3xGameDevelopmentEssentials

Inheritance: MonoBehaviour
Show file Open project: whg333/unity3xGameDevelopmentEssentials Class Usage Examples

Public Properties

Property Type Description
coconutPrefab UnityEngine.Rigidbody
throwSound UnityEngine.AudioClip
throwSpeed float

Public Methods

Method Description
CanThrow ( ) : void
CannotThrow ( ) : void
Start ( ) : void
ThrowCoconut ( ) : void
Update ( ) : void

Method Details

CanThrow() public static method

public static CanThrow ( ) : void
return void

CannotThrow() public static method

public static CannotThrow ( ) : void
return void

Start() public method

public Start ( ) : void
return void

ThrowCoconut() public method

public ThrowCoconut ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

coconutPrefab public property

public Rigidbody,UnityEngine coconutPrefab
return UnityEngine.Rigidbody

throwSound public property

public AudioClip,UnityEngine throwSound
return UnityEngine.AudioClip

throwSpeed public property

public float throwSpeed
return float