// Use this for initialization
 void Start()
 {
     x = transform.position.x;
     y = transform.position.y;
     z = transform.position.z;
     speed = 1;
     cam = GameObject.Find("Main Camera");
     scs = GameObject.Find ("SceneControl").GetComponent(typeof(SceneControlScript)) as SceneControlScript;
 }
 // Use this for initialization
 void Start()
 {
     pc = GameObject.Find("Character").GetComponent("PlayerController") as PlayerController;
     controller = GameObject.Find ("SceneControl");
     dh = (DialogueHelper)controller.GetComponent(typeof(DialogueHelper));
     scs = (SceneControlScript)controller.GetComponent(typeof(SceneControlScript));
     x = transform.position.x;
     y = transform.position.y;
 }
Beispiel #3
0
    // Start is called before the first frame update
    void Start()
    {
        levelControl = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <SceneControlScript>();

        canSpawn  = true;
        cooldown  = levelControl.CurrentLevel.CooldownSpawn;
        resetWave = cooldown;
        counter   = 0;

        indexList = new List <int>();

        minEnemies = levelControl.CurrentLevel.MinSpawn;
        maxEnemies = levelControl.CurrentLevel.MaxSpawn;

        pauseStart  = 0;
        pauseFinish = 0;
    }
Beispiel #4
0
 // Start is called before the first frame update
 void Start()
 {
     levelControl = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <SceneControlScript>();
 }