Exemple #1
0
 //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>();
 }
Exemple #2
0
        public static bool IsTargetDead()
        {
            PlayerScan scan = new PlayerScan();

            scan.Ping();

            WowObject obj = scan.GetLocalTarget();

            return(obj.isDead);
        }
Exemple #3
0
        public static ulong GetTargetGuid()
        {
            PlayerScan scan = new PlayerScan();

            scan.Ping();

            WowObject obj = scan.GetLocalTarget();

            return(obj.Guid);
        }
Exemple #4
0
        public static Point GetTargetPos()
        {
            PlayerScan scan = new PlayerScan();

            scan.Ping();

            WowObject obj = scan.GetLocalTarget();

            return(new Point(obj.XPos, obj.YPos));
        }
Exemple #5
0
        public static float GetPlayerZ()
        {
            PlayerScan scan = new PlayerScan();

            scan.Ping();

            WowObject obj = scan.GetLocalPlayer();

            return(obj.ZPos);
        }
Exemple #6
0
        public static int GetMapId()
        {
            PlayerScan scan = new PlayerScan();

            scan.Ping();

            WowObject obj = scan.GetLocalPlayer();

            return(obj.MapId);
        }
Exemple #7
0
 private void Awake()
 {
     if (instanced == null)
     {
         instanced = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }