Esempio n. 1
0
    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);
    }
Esempio n. 2
0
 private void Awake()
 {
     followerSpawner = GetComponent <FollowerSpawner>();
 }