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(); }
void Start() { // PlayerScript2Dのインスタンス playerObj = GameObject.Find("Player"); plIns = playerObj.GetComponent <PlayerScript2DKey>(); }