Пример #1
0
        /// <summary>
        /// Awake this instance.
        /// </summary>
        protected virtual void Awake()
        {
            m_magia             = Magia.Instance;             // Magiaの参照取得
            m_skillManager      = SkillManager.Instance;      // SkillManagerの参照取得
            m_panelCounter      = PanelCounter.Instance;      // PanelCounterの参照取得
            m_panelManager      = PanelManager.Instance;      // PanelManagerの参照取得
            m_battleManager     = BattleManager.Instance;     // BattleManagerの参照取得
            m_gameManager       = GameManager.Instance;       // Magiaの参照取得
            m_soundManager      = SoundManager.Instance;
            m_panelFrameManager = PanelFrameManager.Instance; // PanelFrameManagerの参照取得
            m_magiaHPGauge      = GameObject.Find("MagiaHPGauge").GetComponentInChildren <HitPointGauge>();
            m_enemyHPGauge      = GameObject.Find("EnemyHPGauge").GetComponentInChildren <HitPointGauge>();
            m_enemySkillGauge   = GameObject.Find("EnemyHPGauge").GetComponentInChildren <EnemySkillGauge>();
            m_background        = GameObject.Find("Background").GetComponent <SpriteRenderer>();

            var debugger = Debugger.BattleDebugger.Instance;

            if (debugger.UseTargetStory)
            {
                m_chapter = ChapterManager.Instance.GetChapter(debugger.TargetStory);
            }
            else
            {
                // その章のChapterを取得
                m_chapter = ChapterManager.Instance.GetChapter();
            }
        }
 private void Awake()
 {
     m_panelCounter   = PanelCounter.Instance;
     m_mainModule     = m_particleSystem.main;
     m_emittionModule = m_particleSystem.emission;
     m_shufflePanels  = transform.parent.GetComponent <ShufflePanels>();
 }
Пример #3
0
 /// <summary>
 /// Awake this instance.
 /// </summary>
 void Awake()
 {
     m_touchGestureDetector = TouchGestureDetector.Instance;        // shingleton,TouchGestureDetectorインスタンスの取得
     m_battleManager        = BattleManager.Instance;               // shingleton,BattleManagerインスタンスの取得
     m_panelCounter         = PanelCounter.Instance;                // PanelCounterの参照取得
     m_panelPrefab          = Resources.Load <GameObject>("Panel"); //PanelをResourcesフォルダに入れてシーン外から取得
     m_panelPositions       = new List <Vector3>();
     m_panelsAfterOpened    = new List <Panel>();
 }
Пример #4
0
 /// <summary>
 /// Awake this instance.
 /// </summary>
 void Awake()
 {
     panelCounter      = PanelCounter.Instance; // PannelCounterの参照取得
     battleManager     = BattleManager.Instance;
     panelFrameManager = PanelFrameManager.Instance;
 }