Пример #1
0
        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();
        }
Пример #2
0
        protected void Start()
        {
            _spawnServiceInterface = GameServiceProvider.CurrentInstance.GetService <ISpawnServiceInterface>();

            _spawnServiceInterface.RegisterSpawnLocationWithService(this);
        }