protected void Awake() { RegisteredGameMode = this; Cursor.SetCursor(MouseTexture, Vector2.up, CursorMode.Auto); Cursor.visible = false; Cursor.lockState = CursorLockMode.Confined; _spawnService = GameServiceProvider.CurrentInstance.GetService <ISpawnServiceInterface>(); HUDInstance = Instantiate(HUDType); InitialisePlayer(); RegisterForMessages(); }
protected void Start() { _spawnServiceInterface = GameServiceProvider.CurrentInstance.GetService <ISpawnServiceInterface>(); _spawnServiceInterface.RegisterSpawnLocationWithService(this); }