|
@@ -164,6 +164,9 @@ namespace CommonAI.Zone.ZoneEditor.EventTrigger
|
|
|
[DescAttribute("位置")]
|
|
|
public PositionValue Position = new PositionValue.VALUE();
|
|
|
|
|
|
+ [DescAttribute("相机高度")]
|
|
|
+ public RealValue Height = new RealValue.VALUE();
|
|
|
+
|
|
|
[DescAttribute("镜头移动速度(每秒距离)")]
|
|
|
public float MoveSpeedSec = 1f;
|
|
|
|
|
@@ -176,7 +179,7 @@ namespace CommonAI.Zone.ZoneEditor.EventTrigger
|
|
|
Vector2 pos = Position.GetValue(api, args);
|
|
|
if (pos != null)
|
|
|
{
|
|
|
- return new CameraMoveToEvent(pos.X, pos.Y, MoveSpeedSec, 0);
|
|
|
+ return new CameraMoveToEvent(pos.X, pos.Y, Height.GetValue(api,args), MoveSpeedSec, 0);
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
@@ -187,6 +190,9 @@ namespace CommonAI.Zone.ZoneEditor.EventTrigger
|
|
|
[DescAttribute("位置")]
|
|
|
public PositionValue Position = new PositionValue.VALUE();
|
|
|
|
|
|
+ [DescAttribute("相机高度")]
|
|
|
+ public RealValue Height = new RealValue.VALUE();
|
|
|
+
|
|
|
[DescAttribute("镜头移动过去的总时间(毫秒)")]
|
|
|
public IntegerValue TotalTimeMS = new IntegerValue.VALUE(1000);
|
|
|
|
|
@@ -200,7 +206,7 @@ namespace CommonAI.Zone.ZoneEditor.EventTrigger
|
|
|
int timeMS = TotalTimeMS.GetValue(api, args);
|
|
|
if (pos != null)
|
|
|
{
|
|
|
- return new CameraMoveToEvent(pos.X, pos.Y, 0, timeMS);
|
|
|
+ return new CameraMoveToEvent(pos.X, pos.Y, Height.GetValue(api, args), 0, timeMS);
|
|
|
}
|
|
|
return null;
|
|
|
}
|