working on charging and quick attacks

This commit is contained in:
2025-07-31 09:04:16 +02:00
parent 407454555f
commit a0c2a389be
34 changed files with 7683 additions and 289 deletions

View File

@@ -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);
}
}
}

View File

@@ -9,6 +9,8 @@ namespace RebootReality.jelycho.Beacons {
[Range(0.0f, 1.0f)] public float growAmount = 0.5f;
[SerializeField] public float growSpeed = 0.5f;
[SerializeField] public ParticleSystem m_GrowParticleSystem;
float m_CurrentGrowAmount = 0.0f;
void Update() {
@@ -81,6 +83,8 @@ namespace RebootReality.jelycho.Beacons {
m_CurrentGrowAmount = 0.0f;
UpdateElements(m_CurrentGrowAmount);
growAmount = 1.0f;
m_GrowParticleSystem.Play();
}
[Serializable]