示例#1
0
 void Awake()
 {
     skillManager         = GetComponentInParent <SkillManager>();
     attackController     = skillManager.GetComponentInChildren <AttackController_Melee>();
     originalAttackDamage = new int[skillManager.character.maxQtdAttacks];
     swordLight           = attackController.GetComponentInChildren <ParticleSystem>();
 }
示例#2
0
 private void Awake()
 {
     skillManager          = GetComponentInParent <SkillManager>();
     skillAttack           = skillManager.GetComponentInChildren <BoxCollider2D>(true);
     skillManager.charAnim = GetComponentInParent <Animator>();
     attackController      = skillManager.GetComponentInChildren <AttackController_Melee>();
 }
示例#3
0
    private void Awake()
    {
        skillManager     = GetComponentInParent <SkillManager>();
        attackController = GameObject.Find("Bones/Hip/Torso/R Upper Arm/R Arm/R Hand/Sword").GetComponent <AttackController_Melee>();

        skillManager.charAnim = GetComponentInParent <Animator>();
        pressCount            = skillManager.GetComponentInChildren <Slider>();
    }