// Use this for initialization
    void Start () {
        ready_to_go = false;
        transform.position = initial_point.position;
        sphere_collider = GetComponent<SphereCollider>();
        gTracker = GetComponent<Gloggr_Tracker>();

    }
 // Use this for initialization
 void Awake()
 {
     current_time = 0;
     gameover = false;
     win = GetComponent<AudioSource>();
     step = 0;
     final = GetComponent<Animation>();
     final_play = false;
     gTracker = GetComponent<Gloggr_Tracker>();
 }
Пример #3
0
    // Use this for initialization
    void Start () {

        gTracker = GetComponent<Gloggr_Tracker>();

        Time.timeScale = 1;
        if (SceneManager.GetActiveScene().name == "Initial Room")
        {
            Transform playerT = GameObject.Find("Cha_Knight").transform;
            Transform mCameraT = GameObject.Find("Main Camera").transform;
            playerT.position = positions[PauseMenu.currentPosition].position;
            mCameraT.GetComponent<CameraFollow>().setOffset();
            /*mCameraT.position = new Vector3(positions[PauseMenu.currentPosition].position.x, 
                                            positions[PauseMenu.currentPosition].position.y + 25, 
                                            positions[PauseMenu.currentPosition].position.z - 15);
            */
            //mCameraT.position = playerT.position + mCameraT.GetComponent<CameraFollow>().getOffset();

        }
    }
Пример #4
0
 void Awake()
 {
     gTracker = GetComponent<Gloggr_Tracker>();
 }