示例#1
0
    void Start()
    {
        //PlayerScript2Dのインスタンスの取得
        playerObj = GameObject.Find("Player");
        plIns     = playerObj.GetComponent <PlayerScript2DKey>();

        //miniteをOpeningMenuのminiteで初期化
        minite = OpeningMenu.getMinite();

        second = 0;
        //表示
        txt.text = "0" + minite.ToString() + ":0" + second.ToString();
    }
示例#2
0
 void Start()
 {
     // PlayerScript2Dのインスタンス
     playerObj = GameObject.Find("Player");
     plIns     = playerObj.GetComponent <PlayerScript2DKey>();
 }