Пример #1
0
 void Awake()
 {
     if (PlayerSpawner.onDelegateSpawn != null)
     {
         PlayerSpawner.OnLateSpawnFunc onLateSpawnFunc = PlayerSpawner.onDelegateSpawn;
         PlayerSpawner.onDelegateSpawn = null;
         onLateSpawnFunc(new PlayerSpawner.DoSpawnFunc(this.DoSpawn), base.transform.position, base.transform.forward);
         return;
     }
     if (this._gameSaver != null)
     {
         StartMenu.InitGame(this._gameSaver, this._mainInput, null);
     }
     this.DoSpawn(base.transform.position, base.transform.forward);
 }