private void arrive() { m_isMoving = false; m_fracJourney = 0; on70PercentArrive = false; transform.position = m_endPosition.position; onArrive.Invoke(); //This three functions below are not consecuent with Entity Component System, they should be called with onArrive.Invoke(). //for the moment, I'm not quite shure of how many percentage of this project should be done with ECS, so I will left they for now... T. GameValuesConfig.SetShowLocationPanels(true, gameObject); if (vFog) { vFog.enabled = false; } if (GetComponent <CameraZoomInOutMouseWheel>()) { GetComponent <CameraZoomInOutMouseWheel>().SetEnable(true); } }
public void GotoPadLocation() { GameValuesConfig.SetShowLocationPanels(false, gameObject); GameStateManager.Instance.PushState(new GamePlayState()); }