void Awake() { instance = this; Followers = new List <GameObject> (); // Setting the amount Amount = 3; success = 0; // Setting the reference for the fire object fire = GameObject.Find("Fire_Color"); // Function creating the followers CreateFollowers(Amount); StartCoroutine(MoveFollowers()); refPos = new Vector3(-2f, 0f, 0f); }
private void Awake() { followerSpawner = GetComponent <FollowerSpawner>(); }