working on charging and quick attacks
This commit is contained in:
@@ -34,7 +34,7 @@ namespace RebootReality.jelycho.Beacons {
|
||||
}
|
||||
|
||||
public int GetMaxBytes() {
|
||||
return 0;
|
||||
return sizeof(float) * 3;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,6 +43,10 @@ namespace RebootReality.jelycho.Beacons {
|
||||
[SerializeField] float m_ConnectionRopeLength = 10.0f;
|
||||
[SerializeField] float m_BeaconSpawnRadius = 15.0f;
|
||||
|
||||
[SerializeField] float m_BeaconSpawnShakeIntensity = 1.0f;
|
||||
[SerializeField] float m_BeaconSpawnShakeRadius = 20.0f;
|
||||
[SerializeField] float m_BeaconSpawnShakeDuration = 1.0f;
|
||||
|
||||
protected override IActorData CreateActorData() {
|
||||
return new BaseManagerActorData();
|
||||
}
|
||||
@@ -52,6 +56,13 @@ namespace RebootReality.jelycho.Beacons {
|
||||
SpawnBeaconCommandData commandData = new SpawnBeaconCommandData();
|
||||
DataSerializationUtils.Deserialize(actorCommand.Data, ref commandData);
|
||||
RR.SpawnActor(m_BeaconPrefab, commandData.Position, Quaternion.identity);
|
||||
|
||||
if (RR.World.Context is WorldContext worldContext) {
|
||||
worldContext.FeedbacksManager.ShakeCamera(commandData.Position,
|
||||
m_BeaconSpawnRadius,
|
||||
m_BeaconSpawnShakeIntensity,
|
||||
m_BeaconSpawnShakeDuration);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user