Beispiel #1
0
    void Start()
    {
        #if !UNITY_EDITOR
        if (levelEnd == LevelEnd.TEST)
        {
            Destroy(gameObject);
        }
        #endif

        if (PlayerPrefs.HasKey(levelEnd.ToString()))
        {
            image.sprite = achievedSprite;
        }

        if (LevelEnder.levelEnd == levelEnd)
        {
            transform.SetParent(transform.parent.parent);
            GetComponent <Animator>().SetBool("Selected", true);
        }
    }