// Use this for initialization void Start() { // インスタンスの初期化 phaseManager = this; // エリア描画用関連の読み込み attackArea = new GameObject("AttackArea"); activeArea = new GameObject("activeArea"); attackArea.transform.parent = transform; activeArea.transform.parent = transform; // プレイヤーターンから始める TurnChange(Enums.ARMY.ALLY); attackBtn = GameObject.Find("CanvasUI/ActiveUI/AttackButton").GetComponent <Button>(); recoveryBtn = GameObject.Find("CanvasUI/ActiveUI/RecoveryButton").GetComponent <Button>(); waitingBtn = GameObject.Find("CanvasUI/ActiveUI/EndButton").GetComponent <Button>(); turnEndBtn = GameObject.Find("CanvasUI/ActiveUI/TurnEndButton").GetComponent <Button>(); battleStandbyUI.SetActive(false); //各ボタンの無効化 attackBtn.interactable = false; recoveryBtn.interactable = false; waitingBtn.interactable = false; // カーソル更新時に呼び出す処理の登録 CursorController.AddCallBack((Vector3 newPos) => { cursorPos = newPos; }); // シーンをロード //SceneManager.LoadScene("conversation", LoadSceneMode.Additive); }