protected override void Awake() { base.Awake(); // set singleton instance instance = this; // cache menu prefab if (menuPrefab == null && AssetBundleLoader.Prefabs != null) { menuPrefab = AssetBundleLoader.Prefabs.LoadAsset <GameObject>("FlightMenu"); } }
protected override void Awake() { base.Awake(); // set singleton instance s_Instance = this; // cache menu prefab if (m_MenuPrefab == null && AssetBundleLoader.Prefabs != null) { m_MenuPrefab = AssetBundleLoader.Prefabs.LoadAsset<GameObject>("FlightMenu"); } }