Exemplo n.º 1
0
        void CheckArea(PlayerPosture posture)
        {
            gpsObjectData.CheckArea(posture.playerPosition, posture.playerAngle);
            gpsAngle    = GPSUtility.Deg2Rad(gpsObjectData.Angle);
            cameraAngle = GPSUtility.Deg2Rad(Camera.main.transform.eulerAngles.y);

            if (gpsObjectData.IsInside.Value)
            {
                if (AreaEnterDebug.Instance != null)
                {
                    AreaEnterDebug.Instance.UpdateDebugText(this.gpsObjectData);
                }
            }
        }
Exemplo n.º 2
0
 void Start() {
     Instance = this;
     Posture = new PlayerPosture() {
         playerPosition = new double[2]
     };
 }