C# Class OpenDoor, Unity3D

Inheritance: MonoBehaviour
Afficher le fichier Open project: kw0006667/Unity3D Class Usage Examples

Méthodes publiques

Свойство Type Description
DoorBlinTexture Texture[]
MinDistance float
OpeningSpeed float
isCanOpen bool

Méthodes publiques

Méthode 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

Méthode Description
Trigger ( ) : float

The distance between Door and Player

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

Method Details

ForB() public méthode

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

MouseLeftButton() public méthode

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

OnGUI() public méthode

public OnGUI ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

opDoor() public méthode

public opDoor ( bool op ) : void
op bool
Résultat void

Property Details

DoorBlinTexture public_oe property

public Texture[] DoorBlinTexture
Résultat Texture[]

MinDistance public_oe property

public float MinDistance
Résultat float

OpeningSpeed public_oe property

public float OpeningSpeed
Résultat float

isCanOpen public_oe property

public bool isCanOpen
Résultat bool