C# Class Blink, TWI_Repo

This script is attached to the player characters and it allows them to "teleport". They aren't acutally teleporting, we are simply making the players move at a really fast speed for a fraction of a second and we make them invisible and invulnerable for that duration. This gives a convincing teleprot effect and the player can't accidentally teleport through the floor, walls, etc. This script accesses the CharacterMotor script to adjust the player's movement speed.
Inheritance: MonoBehaviour
Afficher le fichier Open project: justcollins/TWI_Repo Class Usage Examples

Méthodes publiques

Свойство Type Description
Image bool
blinkArea bool
curTime float
eyebool bool
eyes Image,
maxTime float

Méthodes publiques

Méthode Description
OnTriggerEnter ( Collider col ) : void
OnTriggerExit ( Collider col ) : void
OnTriggerStay ( ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Méthode Description
FlashImage ( ) : IEnumerator

Method Details

OnTriggerEnter() public méthode

public OnTriggerEnter ( Collider col ) : void
col Collider
Résultat void

OnTriggerExit() public méthode

public OnTriggerExit ( Collider col ) : void
col Collider
Résultat void

OnTriggerStay() public méthode

public OnTriggerStay ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

Image public_oe property

public bool Image
Résultat bool

blinkArea public_oe property

public bool blinkArea
Résultat bool

curTime public_oe property

public float curTime
Résultat float

eyebool public_oe property

public bool eyebool
Résultat bool

eyes public_oe property

public Image, eyes
Résultat Image,

maxTime public_oe property

public float maxTime
Résultat float