C# Класс GameFramework.Skill.Trigers.TriggerUtil

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AoeQuery ( GameObject srcObj, GameObject targetObj, int aoeType, float range, float angleOrLength, SkillInstance instance, int senderId, int targetType, Vector3 relativeCenter, bool relativeToTarget, MyFunc callback ) : void
AoeQuery ( Scene scene, EntityInfo srcObj, EntityInfo targetObj, int aoeType, float range, float angleOrLength, SkillInstance instance, int senderId, int targetType, Vector3 relativeCenter, bool relativeToTarget, MyFunc callback ) : void
AttachNodeToNode ( GameObject source, string sourcenode, GameObject target, string targetnode ) : bool
DrawCircle ( Vector3 center, float radius, Color color, float circle_step = 0.05f ) : GameObject
FiltByRelation ( GameObject source, List list, GameFramework relation ) : List
FindTargetInSector ( Vector3 center, float radius, Vector3 direction, Vector3 degreeCenter, float degree ) : List
GetChildNodeByName ( GameObject gameobj, string name ) : Transform
GetHeightWithGround ( GameObject obj ) : float
GetObjFaceDir ( GameObject obj ) : float
GetObjectByPriority ( GameObject source, List list, float distance_priority, float degree_priority, float max_distance, float max_degree ) : GameObject
GetSkillStartPosition ( Vector3 srcPos, TableConfig cfg, SkillInstance instance, int srcId, int targetId, Vector3 &targetPos ) : bool
Lookat ( GameObject obj, Vector3 target ) : void
Lookat ( GameObject obj, Vector3 target, float rotateDegree ) : void
MoveChildToNode ( GameObject obj, string childname, string nodename ) : void
MoveObjTo ( GameObject obj, Vector3 position ) : void
SetObjVisible ( GameObject obj, bool isShow ) : void

Приватные методы

Метод Описание
AoeQuery ( GfxSkillSenderInfo senderObj, SkillInstance instance, int senderId, int targetType, Vector3 relativeCenter, bool relativeToTarget, MyFunc callback ) : void
CalcImpactConfig ( int emitImpact, int hitImpact, SkillInstance instance, TableConfig cfg, object>.Dictionary &result ) : void
ConvertToSecond ( long delta ) : float
FindTargetInSector ( Scene scene, Vector3 center, float radius, Vector3 direction, Vector3 degreeCenter, float degree ) : List
FloatEqual ( float a, float b ) : bool
GetGroundPos ( Vector3 pos ) : Vector3
GetHeightWithGround ( EntityInfo obj ) : float
GetHeightWithGround ( Vector3 pos ) : float
GetObjFaceDir ( EntityInfo obj ) : float
GetSkillImpactId ( object>.Dictionary variables, TableConfig cfg ) : int
Lookat ( Scene scene, EntityInfo obj, Vector3 target ) : void
Lookat ( Scene scene, EntityInfo obj, Vector3 target, float rotateDegree ) : void
MoveObjTo ( EntityInfo obj, Vector3 position ) : void
SetObjVisible ( EntityInfo obj, bool isShow ) : void
TransformPoint ( Vector3 pos, Vector3 offset, float radian ) : Vector3

Описание методов

AoeQuery() публичный статический Метод

public static AoeQuery ( GameObject srcObj, GameObject targetObj, int aoeType, float range, float angleOrLength, SkillInstance instance, int senderId, int targetType, Vector3 relativeCenter, bool relativeToTarget, MyFunc callback ) : void
srcObj UnityEngine.GameObject
targetObj UnityEngine.GameObject
aoeType int
range float
angleOrLength float
instance SkillSystem.SkillInstance
senderId int
targetType int
relativeCenter Vector3
relativeToTarget bool
callback MyFunc
Результат void

AoeQuery() публичный статический Метод

public static AoeQuery ( Scene scene, EntityInfo srcObj, EntityInfo targetObj, int aoeType, float range, float angleOrLength, SkillInstance instance, int senderId, int targetType, Vector3 relativeCenter, bool relativeToTarget, MyFunc callback ) : void
scene Scene
srcObj EntityInfo
targetObj EntityInfo
aoeType int
range float
angleOrLength float
instance SkillSystem.SkillInstance
senderId int
targetType int
relativeCenter Vector3
relativeToTarget bool
callback MyFunc
Результат void

AttachNodeToNode() публичный статический Метод

public static AttachNodeToNode ( GameObject source, string sourcenode, GameObject target, string targetnode ) : bool
source UnityEngine.GameObject
sourcenode string
target UnityEngine.GameObject
targetnode string
Результат bool

DrawCircle() публичный статический Метод

public static DrawCircle ( Vector3 center, float radius, Color color, float circle_step = 0.05f ) : GameObject
center Vector3
radius float
color Color
circle_step float
Результат UnityEngine.GameObject

FiltByRelation() публичный статический Метод

public static FiltByRelation ( GameObject source, List list, GameFramework relation ) : List
source UnityEngine.GameObject
list List
relation GameFramework
Результат List

FindTargetInSector() публичный статический Метод

public static FindTargetInSector ( Vector3 center, float radius, Vector3 direction, Vector3 degreeCenter, float degree ) : List
center Vector3
radius float
direction Vector3
degreeCenter Vector3
degree float
Результат List

GetChildNodeByName() публичный статический Метод

public static GetChildNodeByName ( GameObject gameobj, string name ) : Transform
gameobj UnityEngine.GameObject
name string
Результат UnityEngine.Transform

GetHeightWithGround() публичный статический Метод

public static GetHeightWithGround ( GameObject obj ) : float
obj UnityEngine.GameObject
Результат float

GetObjFaceDir() публичный статический Метод

public static GetObjFaceDir ( GameObject obj ) : float
obj UnityEngine.GameObject
Результат float

GetObjectByPriority() публичный статический Метод

public static GetObjectByPriority ( GameObject source, List list, float distance_priority, float degree_priority, float max_distance, float max_degree ) : GameObject
source UnityEngine.GameObject
list List
distance_priority float
degree_priority float
max_distance float
max_degree float
Результат UnityEngine.GameObject

GetSkillStartPosition() публичный статический Метод

public static GetSkillStartPosition ( Vector3 srcPos, TableConfig cfg, SkillInstance instance, int srcId, int targetId, Vector3 &targetPos ) : bool
srcPos Vector3
cfg TableConfig
instance SkillSystem.SkillInstance
srcId int
targetId int
targetPos Vector3
Результат bool

Lookat() публичный статический Метод

public static Lookat ( GameObject obj, Vector3 target ) : void
obj UnityEngine.GameObject
target Vector3
Результат void

Lookat() публичный статический Метод

public static Lookat ( GameObject obj, Vector3 target, float rotateDegree ) : void
obj UnityEngine.GameObject
target Vector3
rotateDegree float
Результат void

MoveChildToNode() публичный статический Метод

public static MoveChildToNode ( GameObject obj, string childname, string nodename ) : void
obj UnityEngine.GameObject
childname string
nodename string
Результат void

MoveObjTo() публичный статический Метод

public static MoveObjTo ( GameObject obj, Vector3 position ) : void
obj UnityEngine.GameObject
position Vector3
Результат void

SetObjVisible() публичный статический Метод

public static SetObjVisible ( GameObject obj, bool isShow ) : void
obj UnityEngine.GameObject
isShow bool
Результат void