C# Class TangoMultiCamera, beerpong

Multiple type camera. Can switch between First Person, Third Person, and Top Down camera types.
Inheritance: MonoBehaviour
Show file Open project: ashomk/beerpong Class Usage Examples

Public Properties

Property Type Description
m_defaultCameraType CameraType
m_enableCameraTypeUI bool
m_targetFollowingObject GameObject

Public Methods

Method Description
EnableCamera ( CameraType cameraType ) : void

Set the active camera type.

LateUpdate ( ) : void

LateUpdate is called after all Update functions have been called.

OnGUI ( ) : void

OnGUI is called for rendering and handling GUI events.

Start ( ) : void

Start is called on the frame when a script is enabled.

Method Details

EnableCamera() public method

Set the active camera type.
public EnableCamera ( CameraType cameraType ) : void
cameraType CameraType Camera type.
return void

LateUpdate() public method

LateUpdate is called after all Update functions have been called.
public LateUpdate ( ) : void
return void

OnGUI() public method

OnGUI is called for rendering and handling GUI events.
public OnGUI ( ) : void
return void

Start() public method

Start is called on the frame when a script is enabled.
public Start ( ) : void
return void

Property Details

m_defaultCameraType public property

The default camera type.
public CameraType m_defaultCameraType
return CameraType

m_enableCameraTypeUI public property

If set, display the camera switching UI via OnGUI.
public bool m_enableCameraTypeUI
return bool

m_targetFollowingObject public property

The target object to follow.
public GameObject m_targetFollowingObject
return GameObject