Example #1
0
        private void Start()
        {
            if (Instance)
            {
                throw new NotSupportedException($"Only one {nameof(PlayerKickedModal)} must be active at any time.");
            }

            Instance = this;
        }
Example #2
0
 private void OnDestroy()
 {
     Instance = null;
 }