Ejemplo n.º 1
0
    void Start()
    {
        if (this.PlayerIndex >= 0)
        {
            if (!DynamicData.GetSessionPlayer(this.PlayerIndex).HasJoined)
            {
                this.PlayerIndex = -1;
            }
            else
            {
                GlobalEvents.Notifier.Listen(PlayerSpawnedEvent.NAME, this, playerSpawned);
            }
        }

        if (this.PlayerIndex == -1)
        {
            this.Spawner.Targets = PlayerTargetController.Targets;
            Spawner.BeginSpawn();
        }
    }