DoopelPonger
Public Member Functions | Public Attributes | List of all members
TweenToColor Class Reference

Changes the _Tint property of a material to the endColor over time. More...

Inheritance diagram for TweenToColor:
Inheritance graph
[legend]
Collaboration diagram for TweenToColor:
Collaboration graph
[legend]

Public Member Functions

void Awake ()
 Initialize all singletons needed by the class. More...
 
void Init ()
 Reset all variables after being object pooled. More...
 
void StartColorChange ()
 Start the process of changing colors. More...
 
void FixedUpdate ()
 Change the color of the _Tine property if the StartColorChange method has been called. More...
 
void CleanUp ()
 Return the _Tint back to normal and return the modified material to the object pooler. More...
 

Public Attributes

Material renderMaterial
 
Color endColor
 
float timeToColorChange
 
MeshRenderer meshRenderer
 

Detailed Description

Changes the _Tint property of a material to the endColor over time.

Member Function Documentation

◆ Awake()

void TweenToColor.Awake ( )

Initialize all singletons needed by the class.

◆ CleanUp()

void TweenToColor.CleanUp ( )

Return the _Tint back to normal and return the modified material to the object pooler.

◆ FixedUpdate()

void TweenToColor.FixedUpdate ( )

Change the color of the _Tine property if the StartColorChange method has been called.

◆ Init()

void TweenToColor.Init ( )

Reset all variables after being object pooled.

◆ StartColorChange()

void TweenToColor.StartColorChange ( )

Start the process of changing colors.

Member Data Documentation

◆ endColor

Color TweenToColor.endColor

The final color of the material.

◆ meshRenderer

MeshRenderer TweenToColor.meshRenderer

The renderer the renderMaterial should belong to.

◆ renderMaterial

Material TweenToColor.renderMaterial

The material to change colors.

◆ timeToColorChange

float TweenToColor.timeToColorChange

The amount of time it should take to change colors.


The documentation for this class was generated from the following file: