Esempio n. 1
0
        private void Start()
        {
            if (_instance != null && _instance != this)
            {
                Destroy(this.gameObject);
                return;
            }
            _instance = this;

            DontDestroyOnLoad(this);
            SetSkin(GetLastSkin());

            GameObject bgCam = GameObject.FindGameObjectWithTag("BackgroundCam");
            bgCam.GetComponent<Camera>().backgroundColor = theme.backgorundColor;

            //set background cam color
        }
Esempio n. 2
0
 public void UnlockSkin(ThemeManager.Skin skin)
 {
     if (!skins.Any(x => x == skin))
         skins.Add(skin);
 }