void Start() { //BGM soundManager.Instance.StopBgm(); soundManager.Instance.ChangeBgm(1); goText.SetActive(false); finishText.SetActive(false); submarinePoint = 0; shipPoint = 0; frameCnt = 0; gameTime = gameStartTime; gameTimeText.color = new Color(255.0f, 255.0f, 255.0f, 0.0f); //ミサイルの生成時間の最大値を決める createMissileTimeMax = (int)gameTime * 60 / missileNumMax; isCreateMissile = false; winner = WINNER.WINNER_NOTHING; gamePhase = PHASE.PHASE_START; shipController = ship.GetComponent <ShipController>(); trashCount = GameObject.Find("Sea Floor").GetComponent <TrashCount>(); submarineController = submarine.GetComponent <SubmarineController>(); }
//+-+-+-+-+-+-+-+-+-+初期化+-+-+-+-+-+-+-+-+-+// void Start() { normText.text = iNowCreateTrash.ToString("D2") + "/" + iNormNum.ToString("D2"); receivePoint = GameObject.Find("Sea Floor").GetComponent <TrashCount>(); }