void Awake() { #region SINGLETON if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } #endregion }
public static void setAppMaster(Transform app) { _AppMaster = app.gameObject.GetComponent <_app>(); }