public static void ResetTarget(GameObject target) { SkillTargetControl control = target.GetComponent <SkillTargetControl>(); if (control == null) { LogicSystem.GfxLog("ResetTarget control miss!"); return; } control.ResetTarget(); }
public static GameObject GetCurTarget(GameObject target) { SkillTargetControl control = target.GetComponent <SkillTargetControl>(); if (control == null) { LogicSystem.GfxLog("GetCurTarget control miss!"); return(null); } return(control.GetCurTarget()); }
public static bool GetCurTargetPos(GameObject target, out Vector3 targetPos) { targetPos = Vector3.zero; SkillTargetControl control = target.GetComponent <SkillTargetControl>(); if (control == null) { LogicSystem.GfxLog("GetCurTargetPos control miss!"); return(false); } return(control.GetCurTargetPos(out targetPos)); }
public static void RecordTarget(GameObject target, GameObject target2) { SkillTargetControl control = target.GetComponent <SkillTargetControl>(); if (control == null) { LogicSystem.GfxLog("RecordTarget control miss!"); return; } if (TriggerImpl.GetCharacterCamp(target2) != 0) { control.RecordTarget(target2); } }