C# Class DoorManager, unity3xGameDevelopmentEssentials

Inheritance: Photon.MonoBehaviour
显示文件 Open project: whg333/unity3xGameDevelopmentEssentials Class Usage Examples

Public Properties

Property Type Description
doorOpenSound UnityEngine.AudioClip
doorOpenTime float
doorShutSound UnityEngine.AudioClip

Public Methods

Method Description
CheckAndOpenDoor ( ) : void
MakeDoor ( DoorState, doorState ) : void
OperateDoor ( bool openDoor, AudioClip doorSound, string doorAnim ) : void
Start ( ) : void
Update ( ) : void

Method Details

CheckAndOpenDoor() public method

public CheckAndOpenDoor ( ) : void
return void

MakeDoor() public method

public MakeDoor ( DoorState, doorState ) : void
doorState DoorState,
return void

OperateDoor() public method

public OperateDoor ( bool openDoor, AudioClip doorSound, string doorAnim ) : void
openDoor bool
doorSound UnityEngine.AudioClip
doorAnim string
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

doorOpenSound public_oe property

public AudioClip,UnityEngine doorOpenSound
return UnityEngine.AudioClip

doorOpenTime public_oe property

public float doorOpenTime
return float

doorShutSound public_oe property

public AudioClip,UnityEngine doorShutSound
return UnityEngine.AudioClip