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

This class trigger fade in and out depending on the distance of the objects that needs to be fade out once the player is near. More...

Inheritance diagram for TriggerObscuringItemFader:
Inheritance graph
Collaboration diagram for TriggerObscuringItemFader:
Collaboration graph

Private Member Functions

void OnTriggerEnter2D (Collider2D collision)
 Get the gameobject we have collided with, and then get all the obscuring item fader components on it and it children - and then trigger the fade out. More...
 
void OnTriggerExit2D (Collider2D collision)
 Get the gameobject we have collided with, and then get all the obscuring item fader components on it and it children - and then trigger the fade in. More...
 

Detailed Description

This class trigger fade in and out depending on the distance of the objects that needs to be fade out once the player is near.

Definition at line 8 of file TriggerObscuringItemFader.cs.

Member Function Documentation

◆ OnTriggerEnter2D()

void TriggerObscuringItemFader.OnTriggerEnter2D ( Collider2D  collision)
inlineprivate

Get the gameobject we have collided with, and then get all the obscuring item fader components on it and it children - and then trigger the fade out.

Definition at line 11 of file TriggerObscuringItemFader.cs.

Here is the call graph for this function:

◆ OnTriggerExit2D()

void TriggerObscuringItemFader.OnTriggerExit2D ( Collider2D  collision)
inlineprivate

Get the gameobject we have collided with, and then get all the obscuring item fader components on it and it children - and then trigger the fade in.

Definition at line 25 of file TriggerObscuringItemFader.cs.

Here is the call graph for this function:

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