Skip to content
Snippets Groups Projects
Select Git revision
  • main default
  • master
  • tempAndrToMaster
3 results

GlobalSettings.cs

Blame
  • GlobalSettings.cs 579 B
    using UnityEngine;
    
    public class GlobalSettings : MonoBehaviour
    {
        public static GlobalSettings globalSettings;
    
        //Make sure when using RGBA-Colors, the A-value of animationStartColor 
        //and animationEndColor is the same OR try with value = 255
        public Color hintAnimationStartColor;
        public Color hintAnimationEndColor;
        public float hintAnimationDuration;
    
        void Awake()
        {
            if (globalSettings != null)
                GameObject.Destroy(globalSettings);
            else
                globalSettings = this;
    
            DontDestroyOnLoad(this);
        }
    }