C# 클래스 BallController, Imagine_fudge-roll

상속: MonoBehaviour
파일 보기 프로젝트 열기: Microsoft/Imagine_fudge-roll 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
cameraSensitivity float
cameraTransform Transform
highRollSound AudioClip
lowRollSound AudioClip
moveSpeed float
stickyStages StickyStage[]

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
CanStick ( GameObject other ) : bool

Determines whether this instance can pick up the specified object.

메소드 상세

ChangeMovementSound() 공개 메소드

Changes the ball rolling sound to the correct one for our current stickiness.
public ChangeMovementSound ( ) : void
리턴 void

FixedUpdate() 공개 메소드

Logic that runs at fixed time intervals regardless of frame time.
public FixedUpdate ( ) : void
리턴 void

OnCollisionEnter() 공개 메소드

Logic that runs when the ball collides with another object
public OnCollisionEnter ( Collision collision ) : void
collision Collision Collision.
리턴 void

SetStickyness() 공개 메소드

Sets the stickyness.
public SetStickyness ( int index ) : void
index int Level of stickiness.
리턴 void

Start() 공개 메소드

Logic that runs when the object is initialized.
public Start ( ) : void
리턴 void

StartMovementSound() 공개 메소드

Starts audio for ball movement.
public StartMovementSound ( ) : void
리턴 void

StopMovementSound() 공개 메소드

Stops ball rolling audio.
public StopMovementSound ( ) : void
리턴 void

Update() 공개 메소드

Logic that runs every frame.
public Update ( ) : void
리턴 void

프로퍼티 상세

cameraSensitivity 공개적으로 프로퍼티

public float cameraSensitivity
리턴 float

cameraTransform 공개적으로 프로퍼티

public Transform cameraTransform
리턴 Transform

highRollSound 공개적으로 프로퍼티

public AudioClip highRollSound
리턴 AudioClip

lowRollSound 공개적으로 프로퍼티

public AudioClip lowRollSound
리턴 AudioClip

moveSpeed 공개적으로 프로퍼티

public float moveSpeed
리턴 float

stickyStages 공개적으로 프로퍼티

public StickyStage[] stickyStages
리턴 StickyStage[]