Example #1
0
 private void Canvas_World_SettingReference(object sender,
                                            SettingReferenceEventArgs e)
 {
     skillManager    = e.PC.GetComponent <PCSkillManager>();
     pcLocalManager  = e.PC.GetComponent <LocalManager>();
     aimMetaInfo     = e.AimMarker.GetComponent <MetaInfo>();
     examineMetaInfo = e.ExamineMarker.GetComponent <MetaInfo>();
 }
        private void Canvas_PCStatus_CurrentStatus_SettingReference(
            object sender, SettingReferenceEventArgs e)
        {
            GameObject pc = e.PC;

            skillManager = pc.GetComponent <PCSkillManager>();
            actorStatus  = pc.GetComponent <ActorStatus>();
        }
        private void Canvas_PCStatus_HPSkill_SettingReference(object sender,
                                                              SettingReferenceEventArgs e)
        {
            GameObject pc = e.PC;

            skillManager = pc.GetComponent <PCSkillManager>();
            hp           = pc.GetComponent <HP>();
        }
Example #4
0
        private void Canvas_PCStatus_Right_CreatedWorld(object sender, EventArgs e)
        {
            uiObjects    = GetComponent <SearchUI>().Search(canvasTag);
            skillManager = GetComponent <SearchObject>().Search(SubTag.PC)[0]
                           .GetComponent <PCSkillManager>();

            ClearAllUIContent(uiObjects);
        }
Example #5
0
        private void Canvas_PCStatus_Middle_CreatedWorld(object sender, EventArgs e)
        {
            GameObject pc = GetComponent <SearchObject>().Search(SubTag.PC)[0];

            UITag[] uiTags = new UITag[] { UITag.SkillText, UITag.SkillData, };

            uiObjects    = GetComponent <SearchUI>().Search(canvasTag);
            skillManager = pc.GetComponent <PCSkillManager>();

            ClearUIContent(uiTags);
        }
Example #6
0
        private void PrintSkill()
        {
            GameObject     pc           = GetComponent <SearchObject>().Search(SubTag.PC)[0];
            PCSkillManager skillManager = pc.GetComponent <PCSkillManager>();
            var            effectDict   = skillManager.GetSkillEffect(SkillNameTag.Q);

            foreach (var comp in effectDict.Keys)
            {
                Debug.Log(comp + ": "
                          + effectDict[comp][0] + ", " + effectDict[comp][1]);
            }
        }
Example #7
0
        private void Canvas_World_CreatedWorld(object sender, EventArgs e)
        {
            GameObject pc  = GetComponent <SearchObject>().Search(SubTag.PC)[0];
            GameObject aim = GetComponent <SearchObject>().Search(
                SubTag.AimMarker)[0];

            uiObjects    = GetComponent <SearchUI>().Search(canvasTag);
            skillManager = pc.GetComponent <PCSkillManager>();
            localManager = pc.GetComponent <LocalManager>();
            aimMetaInfo  = aim.GetComponent <MetaInfo>();

            ClearModeline();
        }
Example #8
0
        private void Canvas_PCStatus_Left_CreatedWorld(object sender, EventArgs e)
        {
            GameObject pc = GetComponent <SearchObject>().Search(SubTag.PC)[0];

            uiObjects    = GetComponent <SearchUI>().Search(canvasTag);
            skillManager = pc.GetComponent <PCSkillManager>();
            hp           = pc.GetComponent <HP>();

            HPText();
            HPData();

            SkillName();
            SkillCooldown();
            SkillType();
        }
Example #9
0
        private void PrintSkill()
        {
            GameObject     pc           = GetComponent <SearchObject>().Search(SubTag.PC)[0];
            PCSkillManager skillManager = pc.GetComponent <PCSkillManager>();
            var            effectDict   = skillManager.GetSkillEffect(SkillNameTag.SkillE);
            string         compName;
            string         effect;

            foreach (var comp in effectDict.Keys)
            {
                compName = GetComponent <SkillData>()
                           .GetSkillComponentName(comp);
                effect = GetComponent <ConvertSkillMetaInfo>()
                         .GetSkillEffectName(comp, effectDict[comp]);
                Debug.Log(compName + ": " + effect);
            }
        }
Example #10
0
        private void VerifySkillRange_VerifyingSkill(object sender,
                                                     VerifyingSkillEventArgs e)
        {
            int[] markerPos = aimMarker.GetComponent <MetaInfo>().Position;
            int[] pcPos     = pc.GetComponent <MetaInfo>().Position;
            int   distance  = GetComponent <Distance>().GetDistance(pcPos, markerPos);

            PCSkillManager skillManager = pc.GetComponent <PCSkillManager>();
            SkillNameTag   skillName    = skillManager.GetSkillNameTag(e.UseSkill);
            int            skillRange   = skillManager.GetSkillRange(skillName);

            bool canUseSkill = distance <= skillRange;

            if (!canUseSkill)
            {
                e.CanUseSkill.Push(false);
            }
        }
Example #11
0
 private void Canvas_PCStatus_SkillData_SettingReference(object sender,
                                                         SettingReferenceEventArgs e)
 {
     skillManager = e.PC.GetComponent <PCSkillManager>();
 }
Example #12
0
 private void VerifySkillCooldown_SettingReference(object sender,
                                                   SettingReferenceEventArgs e)
 {
     skillManager = e.PC.GetComponent <PCSkillManager>();
 }
Example #13
0
 private void VerifySkillTarget_SettingReference(object sender,
                                                 SettingReferenceEventArgs e)
 {
     aimMarker    = e.AimMarker;
     skillManager = e.PC.GetComponent <PCSkillManager>();
 }