コード例 #1
0
    /// <summary>
    /// Start this instance.
    /// </summary>
    void Start()
    {
        AndroidJNI.AttachCurrentThread();
        //gpsActivityJavaClass = new AndroidJavaClass ("com.TeamWARIS.WARISProject.CustomGPS");
        _camLoc = gameObject.AddComponent<Geolocation>();
        _camLoc.initGPS();
        _directionx = 0;
        _directiony = 1;
        setCamVecLength(0.00015);
        checkGPS();
        gcs = GetComponent<GUIControllerScript>();
        _location = "";
        _GUIWindow = new Rect(Screen.width / 4 + 10, (Screen.height / 2) + 10, Screen.width / 4 - 20, (Screen.height / 2) - 35);

        rc = (ResourceController)GameObject.Find ("Resource Controller").GetComponent<ResourceController> ();
        buildingManager = rc.GetBuildingManager ();
        staffManager = rc.GetStaffManager ();
        lectureManager = rc.GetLectureManager ();

        gpsActivityJavaClass = new AndroidJavaClass ("com.TeamWARIS.WARISProject.CustomGPS");
    }