void Awake() { cameraController = Camera.main.GetComponent <CameraController>(); gameSpeedManager = GetComponent <GameSpeedUpdater>(); menuManager = GetComponent <UIMenuManager>(); gameSpeedManager.RegisterObject(this); InitGame(); }
public void RegisterUpdatableObject(GameObjectUpdatable updatable) { gameSpeedManager.RegisterObject(updatable); }
void Awake() { cameraController = Camera.main.GetComponent<CameraController>(); gameSpeedManager = GetComponent<GameSpeedUpdater>(); menuManager = GetComponent<UIMenuManager>(); gameSpeedManager.RegisterObject(this); InitGame(); }