protected virtual void Start() { _simulationTickRate = FindObjectOfType <SimulateTickRate>(); if (_simulationTickRate != null) { _simulationTickRate.OnTickUpdate.AddListener(OnTickUpdate); } }
private void Start() { _simulationTickRate = FindObjectOfType <SimulateTickRate>(); if (_simulationTickRate != null) { _simulationTickRate.OnTickUpdate.AddListener(OnTickUpdate); } _navigation = FindObjectOfType <Navigation>(); }
private void Start() { _simulationTickRate = FindObjectOfType <SimulateTickRate>(); _simulationTickRate.OnTimeChanged += OnTimeChanged; }