DoopelPonger
|
Changes the _Tint property of a material to the endColor over time. More...
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 |
Changes the _Tint property of a material to the endColor over time.
void TweenToColor.Awake | ( | ) |
Initialize all singletons needed by the class.
void TweenToColor.CleanUp | ( | ) |
Return the _Tint back to normal and return the modified material to the object pooler.
void TweenToColor.FixedUpdate | ( | ) |
Change the color of the _Tine property if the StartColorChange method has been called.
void TweenToColor.Init | ( | ) |
Reset all variables after being object pooled.
void TweenToColor.StartColorChange | ( | ) |
Start the process of changing colors.
Color TweenToColor.endColor |
The final color of the material.
MeshRenderer TweenToColor.meshRenderer |
The renderer the renderMaterial should belong to.
Material TweenToColor.renderMaterial |
The material to change colors.
float TweenToColor.timeToColorChange |
The amount of time it should take to change colors.