Time Rewizer  v.1.1
Created by: Mark Oostveen
MarkOostveen.TimeRewizer.DisableNavMeshWhileRewinding Class Reference

class to disable nav mesh while moving More...

+ Inheritance diagram for MarkOostveen.TimeRewizer.DisableNavMeshWhileRewinding:
+ Collaboration diagram for MarkOostveen.TimeRewizer.DisableNavMeshWhileRewinding:

Public Member Functions

void Initialize ()
 Initialize Object More...
 
void OnDestroy ()
 Cleans object before Garbage collection More...
 

Properties

bool Rewinding [get, set]
 Rewinding ON/OFF More...
 

Detailed Description

class to disable nav mesh while moving

Member Function Documentation

◆ Initialize()

void MarkOostveen.TimeRewizer.DisableNavMeshWhileRewinding.Initialize ( )

Initialize Object

25  {
26  RewizeSystem.Instance.OnFixedUpdate += OnFixedUpdate;
27  m_Agent = GetComponent<NavMeshAgent>();
28  m_Speed.ValueWhileRewinding = 0f;
29  m_Speed.Initialize(gameObject);
30  }

◆ OnDestroy()

void MarkOostveen.TimeRewizer.DisableNavMeshWhileRewinding.OnDestroy ( )

Cleans object before Garbage collection

36  {
37  RewizeSystem.Instance.OnFixedUpdate -= OnFixedUpdate;
38  }

Property Documentation

◆ Rewinding

bool MarkOostveen.TimeRewizer.DisableNavMeshWhileRewinding.Rewinding
getset

Rewinding ON/OFF

19 { get; set; }