A 2D Farming RPG
This is just a simple 2D farming RPG game
Loading...
Searching...
No Matches
ObscuringItemFader Class Reference

Used to obscure items when player is behind them. So that player can see the avatar clearly. More...

Inheritance diagram for ObscuringItemFader:
Inheritance graph
Collaboration diagram for ObscuringItemFader:
Collaboration graph

Public Member Functions

void FadeOut ()
 Start to fade out the object More...
 
void FadeIn ()
 Start to fade in the object More...
 

Private Member Functions

void Awake ()
 
IEnumerator FadeInRoutine ()
 This coroutine will fade in alpha value at each keyframe. More...
 
IEnumerator FadeOutRoutine ()
 This coroutine will fade out alpha value at each keyframe. More...
 

Private Attributes

SpriteRenderer m_SpriteRenderer
 

Detailed Description

Used to obscure items when player is behind them. So that player can see the avatar clearly.

Definition at line 9 of file ObscuringItemFader.cs.

Member Function Documentation

◆ Awake()

void ObscuringItemFader.Awake ( )
inlineprivate

Definition at line 13 of file ObscuringItemFader.cs.

◆ FadeIn()

void ObscuringItemFader.FadeIn ( )
inline

Start to fade in the object

Definition at line 29 of file ObscuringItemFader.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FadeInRoutine()

IEnumerator ObscuringItemFader.FadeInRoutine ( )
inlineprivate

This coroutine will fade in alpha value at each keyframe.

Returns

Definition at line 38 of file ObscuringItemFader.cs.

Here is the caller graph for this function:

◆ FadeOut()

void ObscuringItemFader.FadeOut ( )
inline

Start to fade out the object

Definition at line 21 of file ObscuringItemFader.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FadeOutRoutine()

IEnumerator ObscuringItemFader.FadeOutRoutine ( )
inlineprivate

This coroutine will fade out alpha value at each keyframe.

Returns

Definition at line 59 of file ObscuringItemFader.cs.

Here is the caller graph for this function:

Field Documentation

◆ m_SpriteRenderer

SpriteRenderer ObscuringItemFader.m_SpriteRenderer
private

Definition at line 11 of file ObscuringItemFader.cs.


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