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
Show file Open project: justcollins/TWI_Repo Class Usage Examples

Public Properties

Property Type Description
Image bool
blinkArea bool
curTime float
eyebool bool
eyes Image,
maxTime float

Public Methods

Method Description
OnTriggerEnter ( Collider col ) : void
OnTriggerExit ( Collider col ) : void
OnTriggerStay ( ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
FlashImage ( ) : IEnumerator

Method Details

OnTriggerEnter() public method

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

OnTriggerExit() public method

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

OnTriggerStay() public method

public OnTriggerStay ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

Image public property

public bool Image
return bool

blinkArea public property

public bool blinkArea
return bool

curTime public property

public float curTime
return float

eyebool public property

public bool eyebool
return bool

eyes public property

public Image, eyes
return Image,

maxTime public property

public float maxTime
return float