예제 #1
0
    void ClearScene()
    {
        objectPositions.Clear();

        if (hero != null)
        {
            hero.Clear();
            Destroy(hero);
            hero = null;
        }

        if (monster != null)
        {
            monster.Clear();
            Destroy(monster);
            monster = null;
        }
    }