调整生成宝箱位置
This commit is contained in:
parent
8f4a5c6d7e
commit
03ea7099b6
|
@ -114,7 +114,7 @@ public class RandomPool
|
||||||
private void FillRewardRoom(RoomPreinstall preinstall)
|
private void FillRewardRoom(RoomPreinstall preinstall)
|
||||||
{
|
{
|
||||||
var wave = GetOrCreateWave(preinstall, 0);
|
var wave = GetOrCreateWave(preinstall, 0);
|
||||||
var mark = CreateMark(ActivityType.Treasure, 0, (preinstall.RoomInfo.Waypoints + new Vector2(0.5f, 0.5f)) * GameConfig.TileCellSize);
|
var mark = CreateMark(ActivityType.Treasure, 0, preinstall.GetSpecialMark(SpecialMarkType.Box).Position);
|
||||||
mark.Id = "treasure_box0001";
|
mark.Id = "treasure_box0001";
|
||||||
wave.Add(mark);
|
wave.Add(mark);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user