/// <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();
            }
        }
Exemple #2
0
        private void Start()
        {
            panelFrameManager = PanelFrameManager.Instance;
            arrowImage        = GetComponent <Image>();
            rect = GetComponent <RectTransform>();

            initialPsition  = rect.localPosition;
            rect.localScale = initialScale;

            BattleManager.Instance.m_BehaviourByState.AddListener(state =>
            {
                if (state == BattleManager.StateMachine.State.PlayerChoice && rect.localScale == initialScale)
                {
                    iTween.ValueTo(gameObject, iTween.Hash(
                                       "from", initialScale,
                                       "to", Vector3.one,
                                       "time", scalingTime,
                                       "onupdate", "ScalingArrow",
                                       "updatetarget", gameObject,
                                       "ignoretimescale", false));
                }
            });
        }
 private void Awake()
 {
     m_panelManager      = PanelManager.Instance;      // 参照取得
     m_panelFrameManager = PanelFrameManager.Instance; // 参照取得
 }
Exemple #4
0
 /// <summary>
 /// Awake this instance.
 /// </summary>
 void Awake()
 {
     panelCounter      = PanelCounter.Instance; // PannelCounterの参照取得
     battleManager     = BattleManager.Instance;
     panelFrameManager = PanelFrameManager.Instance;
 }