Exemple #1
0
    public static void Clear()
    {
        timeLine = 0;
        SkillManager.Clean();

        for (int i = 0; i < followers.Count; i++)
        {
            Follower follower = (Follower)followers[i];
            if (follower != null && follower.prev == null)
            {
                MonoBehaviour.Destroy(follower.gameObject);
            }
        }
        followers = new ArrayList();


        for (int i = 0; i < monsters.Count; i++)
        {
            Monster monster = (Monster)monsters[i];
            if (monster != null)
            {
                MonoBehaviour.Destroy(monster.gameObject);
            }
        }
        monsters = new ArrayList();
    }