C# 클래스 SlothController

상속: MonoBehaviour
파일 보기 프로젝트 열기: ferdbold/littleawfuljam2016 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
leftHandCollider UnityEngine.SphereCollider
wallLayerMask LayerMask

공개 메소드들

메소드 설명
ActivateControls ( ) : void
AreControlsEnabled ( ) : bool
DeactivateControls ( ) : void
MoveLeft ( float holdTime ) : void

Move Left Input was pressed

MoveRight ( float holdTime ) : void

Move Right Input was pressed

OnCollisionLeftHand ( ) : void

Called when LeftHand Collider hits a wall

OnCollisionRightHand ( ) : void

Called when RightHand Collider hits a wall

ToggleTurnLeft ( bool isTurning ) : void

Input for Turn Left was modified

ToggleTurnRight ( bool isTurning ) : void

Input for Turn Left was modified

비공개 메소드들

메소드 설명
Awake ( ) : void
MoveSloth ( bool isRight, float holdTime ) : IEnumerator

Initiate a sloth movement

PushSloth ( Vector3 force ) : IEnumerator
RotateSloth ( Vector3 rotation, float animTime, AnimationCurve animCurve ) : IEnumerator

Rotate the transform based on given rotation, time and curve

Start ( ) : void
StartCooldownMoveLeft ( ) : IEnumerator

Left Move Cooldown

StartCooldownMoveRight ( ) : IEnumerator

Right Move Cooldown

Update ( ) : void

메소드 상세

ActivateControls() 공개 메소드

public ActivateControls ( ) : void
리턴 void

AreControlsEnabled() 공개 메소드

public AreControlsEnabled ( ) : bool
리턴 bool

DeactivateControls() 공개 메소드

public DeactivateControls ( ) : void
리턴 void

MoveLeft() 공개 메소드

Move Left Input was pressed
public MoveLeft ( float holdTime ) : void
holdTime float
리턴 void

MoveRight() 공개 메소드

Move Right Input was pressed
public MoveRight ( float holdTime ) : void
holdTime float
리턴 void

OnCollisionLeftHand() 공개 메소드

Called when LeftHand Collider hits a wall
public OnCollisionLeftHand ( ) : void
리턴 void

OnCollisionRightHand() 공개 메소드

Called when RightHand Collider hits a wall
public OnCollisionRightHand ( ) : void
리턴 void

ToggleTurnLeft() 공개 메소드

Input for Turn Left was modified
public ToggleTurnLeft ( bool isTurning ) : void
isTurning bool
리턴 void

ToggleTurnRight() 공개 메소드

Input for Turn Left was modified
public ToggleTurnRight ( bool isTurning ) : void
isTurning bool
리턴 void

프로퍼티 상세

leftHandCollider 공개적으로 프로퍼티

public SphereCollider,UnityEngine leftHandCollider
리턴 UnityEngine.SphereCollider

wallLayerMask 공개적으로 프로퍼티

public LayerMask wallLayerMask
리턴 LayerMask