Beispiel #1
0
 public void Setup(ForceObjectStartSpawnParameters _forceObjectStartSpawnParameters)
 {
     PlayerMovementManager = new PlayerMovementManager(this.transform);
     ForceObjectsManager   = new ForceObjectsManager(this, _forceObjectStartSpawnParameters);
     OrbitationWheel       = ObjectSpawner.SpawnOrbitationWheel(this.transform.position);
     OrbitationWheel.transform.SetParent(transform);
 }
    public override void SetupLevelSettings()
    {
        PlayerStartPosition = new Vector3(0, 0, 0);
        Stages    = new Stage[3];
        Stages[0] = StageCreator.CreateStage(new Vector3(3, 3, 0), 20, 2, 16);
        Stages[1] = StageCreator.CreateStage(new Vector3(9, 0, 0), 20, 2, 15);
        Stages[2] = StageCreator.CreateStage(new Vector3(-4, -12, 0), 20, 20, 1200, CoreParametersCreator.CreateCoreParameters(2500, 5, 20));

        ForceObjectStartSpawnParameters = new ForceObjectStartSpawnParameters();
        ForceObjectStartSpawnParameters.DefendersCount = 3;
        ForceObjectStartSpawnParameters.ExplodersCount = 3;
        ForceObjectStartSpawnParameters.ImplodersCount = 3;
    }
Beispiel #3
0
    public ForceObjectsManager(Player _playerTheManagerIsAttatchedTo, ForceObjectStartSpawnParameters _forceObjectStartSpawnParameters)
    {
        player = _playerTheManagerIsAttatchedTo;

        for (int i = 0; i < _forceObjectStartSpawnParameters.DefendersCount; i++)
        {
            Defender _createdDefender = ObjectSpawner.SpawnDefender(player.transform.position);
            _createdDefender.Target = player.transform;
            Defenders.Enqueue(_createdDefender);
        }
        for (int i = 0; i < _forceObjectStartSpawnParameters.ExplodersCount; i++)
        {
            Exploders.Enqueue(ObjectSpawner.SpawnExploder(player.transform.position));
        }
        for (int i = 0; i < _forceObjectStartSpawnParameters.ImplodersCount; i++)
        {
            Imploders.Enqueue(ObjectSpawner.SpawnImploder(player.transform.position));
        }
    }