예제 #1
0
        private void OnSpecialStart(SpecialAttack specialStruct)
        {
            int currSpecialLevel = m_fighting.GetChainGaugeLevel() - 1; // cause of level 0

            m_currSpecialLevel = specialStruct.SpecialLevels[currSpecialLevel];
            m_currAttackStruct = m_currSpecialLevel.atkStruct;

            OnSpecialAttackEvent.Invoke(m_currSpecialLevel.range);
            m_animator.speed = 1f / m_currSpecialLevel.animationDuration;

            OnAttackStart(m_currSpecialLevel.atkStruct);

            StartCoroutine(ManageSpecial());
        }
예제 #2
0
        public override void OnInspectorGUI()
        {
            currSpecial = target as SpecialAttack;

            // *** MANAGE / DISPLAY ***
            if (currSpecial.SpecialLevels.Count == 0)
            {
                currSpecial.SpecialLevels.Add(new SpecialLevel());
            }

            if (currSpecial != null)
            {
                DisplayCombo();
            }
        }