Beispiel #1
0
 private void Initialize()
 {
     circleObj = GameObject.Find ("CircleGageDummy");
     radicaltimer = circleObj.GetComponent<RadialTimerScript> ();
     time = radicaltimer.stageTimeLimit;
     // スコアをに戻す
     score = time;
     // フラグを初期化する
     isNewRecord = false;
 }
Beispiel #2
0
 //public GameObject UIPanelButton;
 //public GameObject gameOverText;
 //public GameObject gameOverobj;
 void Start()
 {
     //gameOverobj.SetActive (false);
     //初期値60を表示
     //float型からint型へCastし、String型に変換して表示
     GetComponent<Text>().text = ((int)time).ToString();
     //time = RadialTimerScript.stageTimeLimit;
     circleObj = GameObject.Find ("CircleGageDummy");
     radicaltimer = circleObj.GetComponent<RadialTimerScript> ();
     time = radicaltimer.stageTimeLimit;
 }
 //public GameObject UIPanelButton;
 //public GameObject gameOverText;
 //public GameObject gameOverobj;
 void Start()
 {
     //gameOverobj.SetActive (false);
     //初期値60を表示
     circleObj = GameObject.Find ("CircleGageDummy");
     radicaltimer = circleObj.GetComponent<RadialTimerScript> ();
     time = radicaltimer.stageTimeLimit;
     //float型からint型へCastし、String型に変換して表示
     //GetComponent<Text>().text = ((int)time).ToString();
     GetComponent<Text> ().text =
         ((int)time / 60).ToString ("00") + ":" +
             ((int)time % 60).ToString ("00") + ":" +
             (Mathf.Floor (time % 1 * 100)).ToString ("00") + " SEC";
     //time = RadialTimerScript.stageTimeLimit;
 }
Beispiel #4
0
    // Use this for initialization
    void Start()
    {
        //		fNextMove ();

        //*************************************************** 0630 yamaguchi dash start
        speed0 = speed;
        //*************************************************** 0630 yamaguchi dash finish
        //*************************************************** 0703 kawashima changeGreen start
        circleObj = GameObject.Find ("CircleGageDummy");
        radicaltimer = circleObj.GetComponent<RadialTimerScript> ();
        subCamera = GameObject.Find ("SubCamera");
        playerCamera = subCamera.GetComponent<PlayerCamera> ();
        //*************************************************** 0703 kawashima changeGreen finish
        StartCoroutine ("fStart");
    }