// Use this for initialization
    void Start()
    {
        GameObject         groupped = GameObject.Find("SpawnerGroup");
        SpawnerGroupScript scripta  = groupped.GetComponent <SpawnerGroupScript>();

        spawnInterval = scripta.spawnInterval;
        state         = State.SPAWNING;
    }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        GameObject         groupped = GameObject.Find("Spawner");
        SpawnerGroupScript scripta  = groupped.GetComponent <SpawnerGroupScript>();

        spawnInterval = scripta.mineInterval;
        state         = State.SPAWNING;
        // set enemyrotation through script
        enemy_rotation.eulerAngles = new Vector3(180.0f, 0.0f, 0.0f);
    }
Beispiel #3
0
    // Use this for initialization
    void Start()
    {
        GameObject         groupped = GameObject.Find("Spawner");
        SpawnerGroupScript scripta  = groupped.GetComponent <SpawnerGroupScript>();

        spawnInterval = scripta.driveByInterval;
        state         = State.SEQ_INTERVAL;
        timer        -= spawnDelay;
        timer        += Random.value * 10;
        // set enemyrotation through script
        enemy_rotation.eulerAngles = new Vector3(gameObject.transform.rotation.x + 0f, gameObject.transform.rotation.y + 0.0f, 90.0f);
    }