Example #1
0
    // Use this for initialization
    void Start()
    {
        score = TimeToPoint();
        string a = score.ToString();

        text.TextUpdate(a + "Point!!");
    }
Example #2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetMouseButtonDown(0))
     {
         textChenge.TextUpdate("SELECT DIFFICULTY");
         buttonObj.SetActive(true);
     }
 }
Example #3
0
    private void InstanceEnemy(int max)
    {
        int i      = Random.Range(0, max + 1);
        var obj    = GameObject.Find("PronamaChan1");
        var mapObj = GameObject.Find("EnemyPoint");

        obj.transform.position    = enemyPoints[i];
        mapObj.transform.position = new Vector3(enemyPoints[i].x, 90, enemyPoints[i].z);
        if (obj.transform.position.y >= 26)
        {
            text.TextUpdate("相手は自分より高い位置にいるぞ!");
        }
        else
        {
            text.TextUpdate("相手は自分より低い位置にいるぞ!");
        }
        //Debug.Log(enemyPoints[i]);
    }
Example #4
0
 // Update is called once per frame
 void Update()
 {
     if (countDown)
     {
         time -= Time.deltaTime;
         if (time < 0)
         {
             Cursor.visible   = true;
             Cursor.lockState = CursorLockMode.None;
             SceneManager.LoadScene("Result");
         }
         var str = time.ToString("F0");
         textChenge.TextUpdate(str);
     }
     else
     {
         if (isCatch)
         {
             GameControlor.Instance.CatchTimer(time, MaxTime);
             isCatch = false;
         }
     }
 }