Battle Talent  V11
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
CrossLink.GazeMgr Class Reference

Classes

class  GazeInfo
 

Public Types

enum class  GazeType { NormalGaze , GoalGaze , DangerGaze , FriendGaze }
 

Public Member Functions

void RegisterGaze (GazeInfo gi)
 
void UnregisterGaze (Transform target)
 
bool IsMostGaze (GazeInfo gi)
 
void CheckGaze (Vector3 viewPos, Vector3 viewDir)
 
void SetViewer (Transform v)
 
void UpdateView ()
 
int NearEnemiesNum ()
 
void UpdateLod ()
 

Static Public Attributes

static GazeMgr Instance = new GazeMgr()
 
static Color NormalColor = new Color(1, 1, 1, 0.35f)
 
static Color GoalColor = new Color(0.9921f, 0.6587f, 0.2588f, 0.5f)
 
static Color DangerColor = new Color(0.855f, 0.915f, 0.0991f, 0.2f)
 
static Color FriendColor = new Color(0.055f, 0.915f, 0.0991f, 0.75f)
 
static Color InDangerColor = new Color(1f, 0f, 0f)
 
const float IndicatorOffscreenBorder = 220f
 
const float LodNearDis = 6.5f
 
const float LodNearDisSqrt = LodNearDis * LodNearDis
 
const float LodFarDis = 11f
 
const float LodFarDisSqrt = LodFarDis * LodFarDis