Infinite Runner Engine v1.9
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MoreMountains.FeedbacksForThirdParty.MMCinemachinePriorityListener Class Reference

Add this to a Cinemachine virtual camera and it'll be able to listen to MMCinemachinePriorityEvent, usually triggered by a MMFeedbackCinemachineTransition More...

Inheritance diagram for MoreMountains.FeedbacksForThirdParty.MMCinemachinePriorityListener:

Public Member Functions

virtual float GetTime ()
 
virtual float GetDeltaTime ()
 
virtual void OnMMCinemachinePriorityEvent (int channel, bool forceMaxPriority, int newPriority, bool forceTransition, CinemachineBlendDefinition blendDefinition, bool resetValuesAfterTransition, TimescaleModes timescaleMode)
 When we get an event we change our priorities if needed More...
 

Public Attributes

TimescaleModes TimescaleMode = TimescaleModes.Scaled
 
int Channel = 0
 the channel to listen to More...
 

Protected Member Functions

virtual void Awake ()
 On Awake we store our virtual camera More...
 
virtual void OnEnable ()
 On enable we start listening for events More...
 
virtual void OnDisable ()
 Stops listening for events More...
 

Protected Attributes

CinemachineVirtualCameraBase _camera
 

Detailed Description

Add this to a Cinemachine virtual camera and it'll be able to listen to MMCinemachinePriorityEvent, usually triggered by a MMFeedbackCinemachineTransition

Member Function Documentation

◆ Awake()

virtual void MoreMountains.FeedbacksForThirdParty.MMCinemachinePriorityListener.Awake ( )
protectedvirtual

On Awake we store our virtual camera

◆ GetDeltaTime()

virtual float MoreMountains.FeedbacksForThirdParty.MMCinemachinePriorityListener.GetDeltaTime ( )
virtual

◆ GetTime()

virtual float MoreMountains.FeedbacksForThirdParty.MMCinemachinePriorityListener.GetTime ( )
virtual

◆ OnDisable()

virtual void MoreMountains.FeedbacksForThirdParty.MMCinemachinePriorityListener.OnDisable ( )
protectedvirtual

Stops listening for events

◆ OnEnable()

virtual void MoreMountains.FeedbacksForThirdParty.MMCinemachinePriorityListener.OnEnable ( )
protectedvirtual

On enable we start listening for events

◆ OnMMCinemachinePriorityEvent()

virtual void MoreMountains.FeedbacksForThirdParty.MMCinemachinePriorityListener.OnMMCinemachinePriorityEvent ( int  channel,
bool  forceMaxPriority,
int  newPriority,
bool  forceTransition,
CinemachineBlendDefinition  blendDefinition,
bool  resetValuesAfterTransition,
TimescaleModes  timescaleMode 
)
virtual

When we get an event we change our priorities if needed

Parameters
channel
forceMaxPriority
newPriority
forceTransition
blendDefinition
resetValuesAfterTransition

Member Data Documentation

◆ _camera

CinemachineVirtualCameraBase MoreMountains.FeedbacksForThirdParty.MMCinemachinePriorityListener._camera
protected

◆ Channel

int MoreMountains.FeedbacksForThirdParty.MMCinemachinePriorityListener.Channel = 0

the channel to listen to

◆ TimescaleMode

TimescaleModes MoreMountains.FeedbacksForThirdParty.MMCinemachinePriorityListener.TimescaleMode = TimescaleModes.Scaled

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