Inheritance: AppLauncherButton, IFlightAppLauncher
コード例 #1
0
        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");
            }
        }
コード例 #2
0
        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");
            }
        }