トマシープが学ぶ

Unity/VR好きのミーハー初心者 記事内容は自分用のメモ。何も求めないで

自分用はてな記法スクリプト

    void Start () {
        point = 0;
       // Cursor.lockState = CursorLockMode.Confined;
    }
	
	// Update is called once per frame
	void Update () {
        sun.s = (int)sun.s;
        textsun.text = "SUN "+sun.s.ToString();
        textkasa.text = "KASA "+kasamuki.a.ToString();

        if (sun.s - 30 < kasamuki.a && kasamuki.a < sun.s + 30)
        {
            if (EndCanvas.activeSelf == false)
            {
                point = point + 1400 * Time.deltaTime;
               
                //Debug.Log(point);
            }
        }
        point = (int)point;
        textpoint.text = point.ToString();
        endpoint.text = point.ToString();
    }