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>(); }
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); }
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); }
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]); } }
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(); }
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(); }
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); } }
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); } }
private void Canvas_PCStatus_SkillData_SettingReference(object sender, SettingReferenceEventArgs e) { skillManager = e.PC.GetComponent <PCSkillManager>(); }
private void VerifySkillCooldown_SettingReference(object sender, SettingReferenceEventArgs e) { skillManager = e.PC.GetComponent <PCSkillManager>(); }
private void VerifySkillTarget_SettingReference(object sender, SettingReferenceEventArgs e) { aimMarker = e.AimMarker; skillManager = e.PC.GetComponent <PCSkillManager>(); }