C# Class Elevator_Hospital, Unity3D

All Implementations of state and controller.
Inheritance: MonoBehaviour
Datei anzeigen Open project: kw0006667/Unity3D Class Usage Examples

Public Properties

Property Type Description
Director int
DoorSpeed float
DoorWidth float
FloorHeight float
Speed float
isIn bool

Public Methods

Method Description
GetCurrentFloor ( ) : int
GetDoorOpen ( ) : bool
GetState ( ) : State,
OnTriggerEnter ( Collider Object ) : void
OnTriggerExit ( Collider Object ) : void
SetDoorClose ( bool TF ) : void
SetDoorOpen ( bool TF ) : void
SetState ( State, s ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
Distance ( ) : float

Method Details

GetCurrentFloor() public method

public GetCurrentFloor ( ) : int
return int

GetDoorOpen() public method

public GetDoorOpen ( ) : bool
return bool

GetState() public method

public GetState ( ) : State,
return State,

OnTriggerEnter() public method

public OnTriggerEnter ( Collider Object ) : void
Object Collider
return void

OnTriggerExit() public method

public OnTriggerExit ( Collider Object ) : void
Object Collider
return void

SetDoorClose() public method

public SetDoorClose ( bool TF ) : void
TF bool
return void

SetDoorOpen() public method

public SetDoorOpen ( bool TF ) : void
TF bool
return void

SetState() public method

public SetState ( State, s ) : void
s State,
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

Director public_oe property

public int Director
return int

DoorSpeed public_oe property

public float DoorSpeed
return float

DoorWidth public_oe property

public float DoorWidth
return float

FloorHeight public_oe property

public float FloorHeight
return float

Speed public_oe property

public float Speed
return float

isIn public_oe property

public bool isIn
return bool