C# Class OpenDoor, Unity3D

Inheritance: MonoBehaviour
Show file Open project: kw0006667/Unity3D Class Usage Examples

Public Properties

Property Type Description
DoorBlinTexture Texture[]
MinDistance float
OpeningSpeed float
isCanOpen bool

Public Methods

Method Description
ForB ( ) : void

judge the player whether is front of the door or not

MouseLeftButton ( ) : void

If you Click Mouse Left Button, you will call this function.

OnGUI ( ) : void
Start ( ) : void
Update ( ) : void
opDoor ( bool op ) : void

Private Methods

Method Description
Trigger ( ) : float

The distance between Door and Player

isEmptyDoorMaterial ( ) : bool
isRightButtonUp ( bool t ) : void
isTriggerDistance ( ) : bool

Method Details

ForB() public method

judge the player whether is front of the door or not
public ForB ( ) : void
return void

MouseLeftButton() public method

If you Click Mouse Left Button, you will call this function.
public MouseLeftButton ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

opDoor() public method

public opDoor ( bool op ) : void
op bool
return void

Property Details

DoorBlinTexture public property

public Texture[] DoorBlinTexture
return Texture[]

MinDistance public property

public float MinDistance
return float

OpeningSpeed public property

public float OpeningSpeed
return float

isCanOpen public property

public bool isCanOpen
return bool