예제 #1
0
 void OnTriggerEnter(Collider col)
 {
     if (col.tag == "Player")
     {
         //col.GetComponent<MoveChara>().SetState(MoveChara.State.freeze);
         // 戦闘用のパラメータをScriptableObjectのデータに入れる
         battleParam.friendLists = col.GetComponent <FriendParty>().friendLists;
         battleParam.enemyLists  = enemyParty.enemyLists;
         // 主人公の位置を入れる
         battleParam.pos = col.transform.position;
         battleParam.rot = col.transform.rotation;
         // 戦闘シーンの読み込み
         loadSceneManager.FadeAndLoadScene("BattleScene");
     }
 }