Inheritance: MonoBehaviour
コード例 #1
0
ファイル: Program.cs プロジェクト: Taazuma/RoninOldAddons
        /// <summary>
        /// This event is triggered when the game loads
        /// </summary>
        /// <param name="args"></param>
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            //Put the name of the champion here
            //if (Player.Instance.ChampionName != "Elise") return;

            SpellsManager.InitializeSpells();
            Menus.CreateMenu();
            ModeManager.InitializeModes();
            DrawingsManager.InitializeDrawings();
        }
コード例 #2
0
ファイル: Face.cs プロジェクト: ruttuk/kubik
    void Start()
    {
        KubeQueue   = KubeQueue.Instance;
        ModeManager = ModeManager.Instance;

        colorPicker = FindObjectOfType <FlexibleColorPicker>();
        pointerKube = PointerKube.Instance;

        m_Renderer = GetComponent <MeshRenderer>();
    }
コード例 #3
0
 /// <summary>
 /// This event is triggered when the game loads
 /// </summary>
 /// <param name="args"></param>
 private static void Loading_OnLoadingComplete(EventArgs args)
 {
     // if (Player.Instance.ChampionName != "Fiddlesticks") return;
     Chat.Print("Ronin Loaded - Fiddle the Sticks");
     SpellsManager.InitializeSpells();
     Menus.CreateMenu();
     ModeManager.InitializeModes();
     DrawingsManager.InitializeDrawings();
     //Gapcloser.OnGapcloser();
 }
コード例 #4
0
        public static void Initialize()
        {
            Config.Initialize();
            SpellManager.Initialize();
            ModeManager.Initialize();
            DamageIndicator.Initialize(SpellDamage.GetTotalDamage);
            EventsManager.Initialize();

            Drawing.OnDraw += OnDraw;
        }
コード例 #5
0
    /// <summary>
    /// 終了処理
    /// </summary>
    public void Finish()
    {
        UIEnabled.Enabled();

        foreach (var obj in HideGameObjects)
        {
            obj.SetActive(true);
        }

        ModeManager.ChangeGameMode();
    }
コード例 #6
0
ファイル: MapListMode.cs プロジェクト: Neverblade/arvi
 private void SpecialOutputElement()
 {
     if (MM.instance.elements[MM.instance.index].name.Equals(MAP_LIST_NAME))
     {
         MM.OutputText(MAP_LIST_NAME + ", " + PM.instance.selectedMapInfo.metadata.name);
     }
     else
     {
         OutputCurrentElement();
     }
 }
コード例 #7
0
        public MainViewModel(ModeManager modeManager)
        {
            _modeManager = modeManager;

            _currentScale = 0;
            _currentMode  = null;
            _tempo        = 120;
            _modes        = new ObservableCollection <ModeViewModel>();

            BuildModes();
        }
コード例 #8
0
ファイル: MapListMode.cs プロジェクト: Neverblade/arvi
 public void OnMapListTap()
 {
     if (!MM.instance.elements[MM.instance.index].name.Equals(MAP_LIST_NAME))
     {
         OutputCurrentElement();
     }
     else
     {
         MM.OutputText(PM.instance.selectedMapInfo.metadata.name + ", " + mapInfoElement.mLocationText.text);
     }
 }
コード例 #9
0
 /**
  * Called at object's initialization, after all Awakes.
  */
 void Start()
 {
     // Save references
     controllers = Globals.controllers;
     room        = Globals.room;
     logger      = Globals.logger;
     headset     = Globals.headset;
     boundingBox = Globals.boundingBox;
     lighting    = Globals.lighting;
     mode        = Globals.modeManager;
 }
コード例 #10
0
    IEnumerator WaitClosed()
    {
        yield return(new WaitForSeconds(1.4f));

        CameraPosChange.ChangeGameMain();
        CampusBackGround.Enabled();
        CampusTemplate.NonSelect();
        ModeManager.ChangeGameMode();
        CampusDes.Des();
        BGM.Stop();
        UIModeChanger.Enable(true);
    }
コード例 #11
0
ファイル: Program.cs プロジェクト: jhonx21/ItsMeMario
 private static void Loading_OnLoadingComplete(EventArgs args)
 {
     if (Player.Instance.ChampionName != "Lux")
     {
         return;
     }
     SpellsManager.InitializeSpells();
     Menus.CreateMenu();
     ModeManager.InitializeModes();
     DrawingsManager.InitializeDrawings();
     EManager.InitializeEManager();
 }
コード例 #12
0
ファイル: AudioCueMode.cs プロジェクト: Neverblade/arvi
 /**
  * Outputs the element name, with special casing to output the audio cue
  * name when the audio cue list is selected.
  */
 private void SpecialOutputElement()
 {
     if (MM.instance.elements[MM.instance.index].name.Equals(AUDIO_CUE_LIST_NAME))
     {
         Audio audio = AudioLibrary.instance.library[audioLibraryIndex];
         MM.OutputText(AUDIO_CUE_LIST_NAME + ", " + audio.id);
     }
     else
     {
         OutputCurrentElement();
     }
 }
コード例 #13
0
    // Update is called once per frame
    void Update()
    {
        if (EventInformation.BeginEvent)
        {
            Instantiate(EventInformation.PlayingEventPrefab);
            EventInformation.NowPlaying = true;
            EventInformation.BeginEvent = false;

            HideUI();
            ModeManager.ChangeEventMode();
        }
    }
コード例 #14
0
 void Awake()
 {
     //Ensures that this object is a singleton
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
 }
コード例 #15
0
    IEnumerator WaitOpend()
    {
        yield return(new WaitForSeconds(1.0f));

        if (!MoveAnimation.isPlaying)
        {
            State = STATE.Stop;
            CameraPosChange.ChangeDrawingCampus();
            CampusBackGround.Unavailable();
            ModeManager.ChangeDrawingMode();
        }
    }
コード例 #16
0
        public void OnInitialize()
        {
            Game.OnGameLoaded += () =>
            {
                Core.DelayAction(() =>
                {
                    if (Globals.MyHero.Hero.Equals(Champion.Annie))
                    {
                        switch (Updater.Run(Name, Version))
                        {
                        case "NoUpdate":
                            Chat.Print("<font color='#27ae60'>[T2IN1-UPDATE-CHECKER] </font>No update found");
                            break;

                        case "Failed":
                            Chat.Print("<font color='#e74c3c'>[T2IN1-UPDATE-CHECKER] </font>Could not check for updates");
                            break;

                        case "NewVersion":
                            Chat.Print("<font color='#e74c3c'>[T2IN1-UPDATE-CHECKER] </font>A new update is available");
                            break;

                        default:
                            Chat.Print("<font color='#e74c3c'>[T2IN1-UPDATE-CHECKER] </font>Could not check for updates");
                            break;
                        }

                        Console.Clear();

                        try
                        {
                            SpellsManager.Initialize();
                            Menus.Initialize();
                            Drawings.Initialize();
                            DamageIndicator.Initialize();
                            ModeManager.Initialize();
                            EventManager.Initialize();
                            /* Interrupt.Initialize(); TODO: FINISH */
                        }
                        catch (Exception _Exception)
                        {
                            Logger.Log("Error: " + _Exception, ConsoleColor.Red);
                        }

                        Chat.Print("<font color='#27ae60'>[T2IN1-REBORN] </font>Script is fully initialized");
                    }
                    else
                    {
                        Chat.Print("<font color='#e74c3c'>[T2IN1-REBORN] </font> Champion: " + ObjectManager.Player.ChampionName + " is not Supported!");
                    }
                }, new Random().Next(1250, 3500));
            };
        }
コード例 #17
0
ファイル: ModeManager.cs プロジェクト: Doychev/SequenceGithub
 void Awake()
 {
     if (instance != null && instance != this)
     {
         Destroy(this.gameObject);
         return;
     }
     else
     {
         instance = this;
     }
     DontDestroyOnLoad(this.gameObject);
 }
コード例 #18
0
 //=============
 //Unity Events
 //=============
 public void OnEnable()
 {
     if (modeManager == null) {
         modeManager = new ModeManager ();
     }
     try {
         modeManager.init (gameObject);
     } catch (Exception e) {
         Debug.LogError (string.Format("({0} -- Free Flight Component): Script Failed Initialization: [{1}] {2} \n{3}",
                                       gameObject.name, e.GetType().ToString(), e.Message, e.StackTrace.ToString()));
         enabled = false;
     }
 }
コード例 #19
0
ファイル: Sivir.cs プロジェクト: lolscripts/zilean
 static Sivir()
 {
     if (Player.Instance.Hero != Champion.Sivir)
     {
         return;
     }
     Spells.Initiliaze();
     ModeManager.Initialize();
     ProcessSpells.Initialize();
     Config.Initialize();
     Drawings.Initiliaze();
     DamageIndicator.Initialize(Spells.GetTotalDmg);
 }
コード例 #20
0
ファイル: UserSession.cs プロジェクト: smitting/lptoolkit
 /// <summary>
 /// Creates an instance for managing each aspect of a user session.
 /// </summary>
 public UserSession()
 {
     Implants  = new ImplantManager(this);
     Devices   = new DeviceManager(this);
     MidiMap   = new MidiMappingManager(this);
     OSC       = new OscManager(this);
     Modes     = new ModeManager(this);
     Sync      = new SyncManager(this);
     Console   = new ConsoleManager(this);
     Gui       = new GuiManager(this);
     Cluster   = new ClusterManager(this);
     _saveTask = new SaveTask(this);
 }
コード例 #21
0
ファイル: Twitch.cs プロジェクト: lolscripts/zilean
 public void Init()
 {
     new Spells().Init();
     ModeManager.Initialize();
     ItemManager.Init();
     Selector.Init();
     MenuX.Init();
     new Drawings().Init();
     Obj_AI_Base.OnProcessSpellCast += AiHeroClientOnOnProcessSpellCast;
     GameObject.OnCreate            += GameObjectOnOnCreate;
     GameObject.OnDelete            += GameObjectOnOnDelete;
     Indicator = new DamageIndicator();
 }
コード例 #22
0
 public void LoadGameScene()
 {
     if (GameObject.Find("ModeManager").GetComponent <ModeManager>() != null)
     {
         modeManager = GameObject.Find("ModeManager").GetComponent <ModeManager>();
     }
     else
     {
         SceneManager.LoadScene("_Game", LoadSceneMode.Single);
         return;
     }
     SceneManager.LoadScene(modeManager.getScene(), LoadSceneMode.Single);
 }
コード例 #23
0
    private void Start()
    {
        DontDestroyOnLoad(this.gameObject);

        if (modeManagerInstance == null)
        {
            modeManagerInstance = this;
        }
        else
        {
            Object.Destroy(this.gameObject);
        }
    }
コード例 #24
0
 /// <summary>
 /// This event is triggered when the game loads
 /// </summary>
 /// <param name="args"></param>
 private static void Loading_OnLoadingComplete(EventArgs args)
 {
     //Put the name of the champion here
     if (Player.Instance.ChampionName != "Kassadin")
     {
         return;
     }
     Chat.Print("Welcome to the Ronin´s BETA ;)");
     SpellsManager.InitializeSpells();
     Menus.CreateMenu();
     ModeManager.InitializeModes();
     DrawingsManager.InitializeDrawings();
 }
コード例 #25
0
    /**
     * Creates directory with port file
     */
    private void createPortDir(int port)
    {
        ModeManager modeManager = Globals.modeManager;

        string dir = Path.GetTempPath() + "/Unity3DPlugin/";

        // Create directory if it doesn't exist
        if (!Directory.Exists(dir))
        {
            Directory.CreateDirectory(dir);
        }

        if (modeManager.isEditorMode())
        {
            dir += "Editor/";
        }
        else
        {
            dir += "Embedded/";
        }

        if (!Directory.Exists(dir))
        {
            Directory.CreateDirectory(dir);
        }

        // Cleanup leftovers from previous runs
        foreach (string d in Directory.GetDirectories(dir))
        {
            Directory.Delete(d, true);
        }

        if (modeManager.isEditorMode())
        {
            dir += port;
        }
        else
        {
            dir += System.Diagnostics.Process.GetCurrentProcess().Id;
        }

        Directory.CreateDirectory(dir);

        if (!modeManager.isEditorMode())
        {
            string portFile = dir + "/port" + port;

            // Create port file
            using (File.Create(portFile)) { };
        }
    }
コード例 #26
0
        private void powDown(string label)
        {
            Simulation sim = Simulation.getInstance();

            sim.powDown(label);
            sim.showConductRoutes();
            sim.updateOutPutSource();
            if (ModeManager.getAuthority().needSimComparator())
            {
                Simulation sim2 = Simulation.getAnotherSimulation();
                sim2.powDown(label);
                sim2.updateOutPutSource();
            }
        }
コード例 #27
0
    public void CallScene(string scene)
    {
        switch (scene)
        {
        case "medley":
            ModeManager.State = ModeManager.GameState.Medley;
            StartCoroutine(ModeManager.TransitionFromMinigame());
            break;

        default:
            Debug.Log("Titulo de overlay incorreto.");
            return;
        }
    }
コード例 #28
0
ファイル: Program.cs プロジェクト: alieeeg/Justice-Talon
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Talon")
            {
                return;
            }

            SpellsManager.InitializeSpells();
            Menus.CreateMenu();
            ModeManager.InitializeModes();
            DrawingsManager.InitializeDrawings();
            Orbwalker.OnPostAttack  += Orbwalker_OnPostAttack;
            Obj_AI_Base.OnSpellCast += Obj_AI_Base_OnSpellCast;
        }
コード例 #29
0
ファイル: Loader.cs プロジェクト: spall9/T2N1
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            //Teemo
            if (Player.Instance.Hero == Champion.Teemo)
            {
                SpellsManager.InitializeSpells();
                Menus.CreateMenu();
                ModeManager.InitializeModes();
                DrawingsManager.InitializeDrawings();

                Chat.Print("T2IN1 Teemo Loaded!");
                Chat.Print("Credits to MarioGK for his Template & Lib also Credits to Joker for Parts of his Lib");
            }
        }
コード例 #30
0
    public void OnSelectScanning()
    {
        bool success = PM.instance.CreateNewSession();

        if (success)
        {
            //Debug.Log("Scanning. Moving to New Map Mode.");
            MM.instance.SwitchModes(scanningMode);
        }
        else
        {
            MM.OutputText("ARVI is still loading, please stand by.");
        }
    }
コード例 #31
0
        /// <summary>
        /// Starts loading a new game session instance.
        /// </summary>
        public void StartLoad(GameParameter parameter)
        {
            var gameScreen   = ScreenNavigator.CreateHidden <GameScreen>();
            var selectedMap  = SelectedMap.Value;
            var modeServicer = ModeManager.GetService(selectedMap.PlayableMode);

            loadingState.BindTo(GameModel.LoadState);

            // Start loading the game.
            GameModel.LoadGame(parameter, modeServicer);

            // Listen to game screen init event.
            GameModel.LoadState.BindAndTrigger(OnLoadStateChange);
        }
コード例 #32
0
ファイル: Resetter.cs プロジェクト: syougun360/PicGatherHD
    public void TreeReset()
    {
        Camera.main.GetComponent <ResetDirector>().enabled = true;

        NonActive(gameObject);
        NonActive(stampGesture);
        NonActive(tutorialSkip);
        NonActive(drawingCampus);
        NonActive(stamp);
        NonActive(shareButton);

        DataClear.Delete();

        ModeManager.ChangeResetMode();
    }
コード例 #33
0
    public void postScoreToLeaderboard(int score, ModeManager.GameMode mode)
    {
        string leaderboard = "";
        if (mode.Equals(ModeManager.GameMode.CLASSIC))
        {
            leaderboard = SocialIds.leaderboard_classic_leaderboard;
        }
        else if (mode.Equals(ModeManager.GameMode.TEMPO))
        {
            leaderboard = SocialIds.leaderboard_tempo_leaderboard;
        }
        else if (mode.Equals(ModeManager.GameMode.WILD))
        {
            leaderboard = SocialIds.leaderboard_wild_leaderboard;
        }

        Social.ReportScore(score, leaderboard, (bool success) =>
        {
            // handle success or failure
        });
    }