add : rain vfx
This commit is contained in:
@@ -69,6 +69,9 @@ namespace OctoCore.Components
|
||||
[Tooltip("Time offset to desynchronize multiple animations")]
|
||||
public float TimeOffset = 0;
|
||||
|
||||
[Tooltip("Random Time Offset")]
|
||||
public bool RandomOffset = false;
|
||||
|
||||
[Tooltip("Translation amount in local space (meters)")]
|
||||
public Vector3 Translation = Vector3.zero;
|
||||
|
||||
@@ -164,8 +167,12 @@ namespace OctoCore.Components
|
||||
_state.InitialPosition = transform.localPosition;
|
||||
_state.InitialRotation = transform.localRotation;
|
||||
_state.InitialScale = transform.localScale;
|
||||
_state.CurrentTime = _settings.TimeOffset;
|
||||
_state.IsFinished = false;
|
||||
|
||||
if (_settings.RandomOffset)
|
||||
_timeOffset -= Random.Range(0f, _settings.Duration);
|
||||
|
||||
_state.CurrentTime = _settings.TimeOffset;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user