Exemplo n.º 1
0
 /// <summary>
 /// Only ever called once, mainly used to initialize variables.
 /// </summary>
 private void Awake()
 {
     if (instance != null)
     {
         DestroyImmediate(this);
     }
     instance = this;
     DontDestroyOnLoad(this);
     Plugin.log.Debug($"FPFCController awake.");
 }
Exemplo n.º 2
0
 /// <summary>
 /// Called when the script is being destroyed.
 /// </summary>
 private void OnDestroy()
 {
     instance = null;
 }