Example #1
0
        private void Awake()
        {
            rectTransform = gameObject.GetComponent <RectTransform>();

            if (_battleCoreGameObject != null)
            {
                battleCore = _battleCoreGameObject.GetComponent <BattleCore>();
                battleCore.DamageOccurred += OnDamageOccurred;
            }

            if (fighter1ImageObject != null)
            {
                fighter1Image = fighter1ImageObject.GetComponent <Image>();
            }

            if (fighter2ImageObject != null)
            {
                fighter2Image = fighter2ImageObject.GetComponent <Image>();
            }

            if (hitEffectObject1 != null)
            {
                hitEffectAnimator1 = hitEffectObject1.GetComponent <Animator>();
            }

            if (hitEffectObject2 != null)
            {
                hitEffectAnimator2 = hitEffectObject2.GetComponent <Animator>();
            }
        }
Example #2
0
        void Awake()
        {
            if (_battleCoreGameObject != null)
            {
                battleCore = _battleCoreGameObject.GetComponent <BattleCore>();
            }

            currentGuardHealth = 0;
            UpdateGuardHealthImages();
        }
Example #3
0
        void Awake()
        {
            if (_battleCoreGameObject != null)
            {
                battleCore = _battleCoreGameObject.GetComponent <BattleCore>();
            }

            roundWonImages = new Image[roundWonImageObjects.Length];
            for (int i = 0; i < roundWonImageObjects.Length; i++)
            {
                roundWonImages[i] = roundWonImageObjects[i].GetComponent <Image>();
            }

            currentRoundWon = 0;
            UpdateRoundWonImages();
        }
Example #4
0
 public BattleAI(BattleCore core)
 {
     battleCore = core;
 }
Example #5
0
 public IntroState(BattleCore battleCore)
 {
     this.battleCore = battleCore;
 }
Example #6
0
 public KOState(BattleCore battleCore)
 {
     this.battleCore = battleCore;
 }
Example #7
0
 public FightState(BattleCore battleCore)
 {
     this.battleCore = battleCore;
 }
Example #8
0
 public EndState(BattleCore battleCore)
 {
     this.battleCore = battleCore;
 }