Свойство | Type | Description | |
---|---|---|---|
cameraSensitivity | float | ||
cameraTransform | Transform | ||
highRollSound | AudioClip | ||
lowRollSound | AudioClip | ||
moveSpeed | float | ||
stickyStages | StickyStage[] |
Méthode | Description | |
---|---|---|
ChangeMovementSound ( ) : void |
Changes the ball rolling sound to the correct one for our current stickiness.
|
|
FixedUpdate ( ) : void |
Logic that runs at fixed time intervals regardless of frame time.
|
|
OnCollisionEnter ( Collision collision ) : void |
Logic that runs when the ball collides with another object
|
|
SetStickyness ( int index ) : void |
Sets the stickyness.
|
|
Start ( ) : void |
Logic that runs when the object is initialized.
|
|
StartMovementSound ( ) : void |
Starts audio for ball movement.
|
|
StopMovementSound ( ) : void |
Stops ball rolling audio.
|
|
Update ( ) : void |
Logic that runs every frame.
|
Méthode | Description | |
---|---|---|
CanStick ( GameObject other ) : bool |
Determines whether this instance can pick up the specified object.
|
public OnCollisionEnter ( Collision collision ) : void | ||
collision | Collision | Collision. |
Résultat | void |
public SetStickyness ( int index ) : void | ||
index | int | Level of stickiness. |
Résultat | void |