BattleArea.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
    void Start()
    {
        this.gameObject.layer = 2;
        if(this.collider == null) GameObject.Destroy(this.gameObject);
        else
        {
            this.spawnedQuantity = new int[this.enemyID.Length];
            if(!this.spawnOnEnter) this.StartCoroutine(this.SpawnAllEnemies());
        }
    }