/// 配置情報を書き込む private static void loadFirstSetup() { GameCtrlManager ctrlResMgr = GameCtrlManager.GetInstance(); ctrlResMgr.CtrlPl.SetPlace(0.0f, new Vector3(-10.0f, 15.0f, 0.0f)); int trgType; Vector3 trgPos = new Vector3(); Vector3 trgRot = new Vector3(); /// 敵情報の読み取り ///----------------------------------------------------------- if (SetupEnPlaceData.Version > 0) { SetupEnPlaceData data = new SetupEnPlaceData(); int enNum = data.PlaceData.GetLength(0); for (int i = 0; i < enNum; i++) { trgType = (int)data.PlaceData[i, 0]; trgPos.X = data.PlaceData[i, 1]; trgPos.Y = data.PlaceData[i, 2]; trgPos.Z = data.PlaceData[i, 3]; trgRot.Y = data.PlaceData[i, 4]; //ctrlResMgr.CtrlHobit.EntryAddEnemy( trgType, trgRot.Y, trgPos,(int)rand.Next(0,4) ); } } }
/// 配置情報を書き込む private static void loadFirstSetup() { GameCtrlManager ctrlResMgr = GameCtrlManager.GetInstance(); ctrlResMgr.CtrlPl.SetPlace( 0.0f, new Vector3( -10.0f, 15.0f, 0.0f) ); int trgType; Vector3 trgPos = new Vector3(); Vector3 trgRot = new Vector3(); /// 敵情報の読み取り ///----------------------------------------------------------- if( SetupEnPlaceData.Version > 0 ){ SetupEnPlaceData data = new SetupEnPlaceData(); int enNum = data.PlaceData.GetLength(0); for( int i=0; i<enNum; i++ ){ trgType = (int)data.PlaceData[i,0]; trgPos.X = data.PlaceData[i,1]; trgPos.Y = data.PlaceData[i,2]; trgPos.Z = data.PlaceData[i,3]; trgRot.Y = data.PlaceData[i,4]; //ctrlResMgr.CtrlHobit.EntryAddEnemy( trgType, trgRot.Y, trgPos,(int)rand.Next(0,4) ); } } }