Dong_Minh_Doxygen
|
CameraSwitch Class Reference
Inheritance diagram for CameraSwitch:
Collaboration diagram for CameraSwitch:
Public Attributes | |
Camera | thirdPCamera |
Camera | overheadCamera |
Private Member Functions | |
void | Start () |
This is to intialize upon start of the game More... | |
void | Update () |
This will update every fame to check whether the user switch cams or not. More... | |
Private Attributes | |
bool | switchCam = false |
Detailed Description
Definition at line 5 of file CameraSwitch.cs.
Member Function Documentation
◆ Start()
|
private |
This is to intialize upon start of the game
- Pseudo Code
- Get third person camera and set it to true
- Get overhead camera and set it to false
Definition at line 22 of file CameraSwitch.cs.
◆ Update()
|
private |
This will update every fame to check whether the user switch cams or not.
- Pseudo Code
- Did the user press F?
- If yes, check the switchCam statement, then reverse its statement, then another statement to make more statemenets to change the cameras
- If no, do nothing.
- Parameters
-
thirdPCamera Third Pereson Camera overheadCamera Overhead Camera
- Returns
- Swaps the statement to true or false for overhead and third person camera
Definition at line 45 of file CameraSwitch.cs.
Member Data Documentation
◆ overheadCamera
Camera CameraSwitch.overheadCamera |
Definition at line 8 of file CameraSwitch.cs.
◆ switchCam
|
private |
Definition at line 10 of file CameraSwitch.cs.
◆ thirdPCamera
Camera CameraSwitch.thirdPCamera |
Definition at line 7 of file CameraSwitch.cs.
The documentation for this class was generated from the following file:
- D:/Google Drive/Unity Projects/Tank Game/Assets/Scripts/CameraSwitch.cs
Generated by 1.8.13