Dong_Minh_Doxygen: CameraSwitch Class Reference

Dong Minh

Dong_Minh_Doxygen
Inheritance diagram for CameraSwitch:
Inheritance graph
Collaboration diagram for CameraSwitch:
Collaboration graph

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()

void CameraSwitch.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()

void CameraSwitch.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
thirdPCameraThird Pereson Camera
overheadCameraOverhead 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

bool CameraSwitch.switchCam = false
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:
Generated by   doxygen 1.8.13