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

This class will confine the camera so that it won't go beyond the boundaries. More...

Inheritance diagram for SwitchConfineBoundingShape:
Inheritance graph
Collaboration diagram for SwitchConfineBoundingShape:
Collaboration graph

Private Member Functions

void OnEnable ()
 Subscribe to the AfterSceneLoadEvent event. More...
 
void OnDisable ()
 Unsubscribe from the AfterSceneLoadEvent event. More...
 
void SwitchBoundingShape ()
 Switch the collider that cinemachine uses to define the edges of the screen. More...
 

Detailed Description

This class will confine the camera so that it won't go beyond the boundaries.

Definition at line 8 of file SwitchConfineBoundingShape.cs.

Member Function Documentation

◆ OnDisable()

void SwitchConfineBoundingShape.OnDisable ( )
inlineprivate

Unsubscribe from the AfterSceneLoadEvent event.

Definition at line 22 of file SwitchConfineBoundingShape.cs.

Here is the call graph for this function:

◆ OnEnable()

void SwitchConfineBoundingShape.OnEnable ( )
inlineprivate

Subscribe to the AfterSceneLoadEvent event.

Definition at line 14 of file SwitchConfineBoundingShape.cs.

Here is the call graph for this function:

◆ SwitchBoundingShape()

void SwitchConfineBoundingShape.SwitchBoundingShape ( )
inlineprivate

Switch the collider that cinemachine uses to define the edges of the screen.

Definition at line 30 of file SwitchConfineBoundingShape.cs.

Here is the caller graph for this function:

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