//on start we take the references for all the needed scripts on the player objects private void Start() { ring = GetComponent <PlayerRotateRing>(); select = GetComponent <PlayerSelect>(); scan = GetComponent <PlayerScan>(); audios = GetComponent <AudioSource>(); }
public static bool IsTargetDead() { PlayerScan scan = new PlayerScan(); scan.Ping(); WowObject obj = scan.GetLocalTarget(); return(obj.isDead); }
public static ulong GetTargetGuid() { PlayerScan scan = new PlayerScan(); scan.Ping(); WowObject obj = scan.GetLocalTarget(); return(obj.Guid); }
public static Point GetTargetPos() { PlayerScan scan = new PlayerScan(); scan.Ping(); WowObject obj = scan.GetLocalTarget(); return(new Point(obj.XPos, obj.YPos)); }
public static float GetPlayerZ() { PlayerScan scan = new PlayerScan(); scan.Ping(); WowObject obj = scan.GetLocalPlayer(); return(obj.ZPos); }
public static int GetMapId() { PlayerScan scan = new PlayerScan(); scan.Ping(); WowObject obj = scan.GetLocalPlayer(); return(obj.MapId); }
private void Awake() { if (instanced == null) { instanced = this; } else { Destroy(gameObject); } }