예제 #1
0
파일: end_zone.cs 프로젝트: 9volt/ld33
 void OnTriggerEnter(Collider other)
 {
     if (other.gameObject == ball)
     {
         gui g = Camera.main.gameObject.GetComponent <gui>();
         PlayerPrefs.SetInt("last_score", g.score);
         Application.LoadLevel("testing");
     }
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     S            = this;
     player1Goals = 0;
     player2Goals = 0;
     rightScore   = GameObject.Find("ScoreRight").GetComponent <Text> ();
     leftScore    = GameObject.Find("ScoreLeft").GetComponent <Text>();
     goalText     = GameObject.Find("GoalText");
     goalText.SetActive(false);
 }
예제 #3
0
    void Start()
    {
        rigidbody        = GetComponent <Rigidbody>();
        input            = new Vector3();
        jumpCount        = 0;
        startPoint       = GameObject.FindGameObjectWithTag("Start Point").transform.position;
        Cursor.visible   = false;
        Cursor.lockState = CursorLockMode.Locked;
        cam     = Camera.main;
        gameGUI = GameObject.Find("Canvas").GetComponentInChildren <gui>();

        GameObject floor = GameObject.FindGameObjectWithTag("Floor");

        floor.GetComponent <Renderer>().material.mainTexture.wrapMode = TextureWrapMode.Repeat;
        sensitivitySlider       = GameObject.FindObjectOfType <Slider>();
        sensitivitySlider.value = lookSensitivity;
    }
예제 #4
0
        public void updateWindow(gui.Window window)
        {
            if(_settings.updateWindows)
            {
                _background.wait();

                _client.execute(() => Protocol.requestWindowUpdate(window, _connection));
                _requestGui();
            }
        }
예제 #5
0
 showItems.Append(gui.LineBreak);