| | 1 | | namespace DCL.ECSComponents |
| | 2 | | { |
| | 3 | | public static class PBAnimator_Defaults |
| | 4 | | { |
| | 5 | | public static float GetWeight(this PBAnimationState self) |
| | 6 | | { |
| 4 | 7 | | return self.HasWeight ? self.Weight : 1.0f; |
| | 8 | | } |
| | 9 | |
|
| | 10 | | public static float GetSpeed(this PBAnimationState self) |
| | 11 | | { |
| 4 | 12 | | return self.HasSpeed ? self.Speed : 1.0f; |
| | 13 | | } |
| | 14 | |
|
| | 15 | | public static bool GetLoop(this PBAnimationState self) |
| | 16 | | { |
| 4 | 17 | | return !self.HasLoop || self.Loop; |
| | 18 | | } |
| | 19 | |
|
| | 20 | | public static bool GetShouldReset(this PBAnimationState self) |
| | 21 | | { |
| 4 | 22 | | return self.HasShouldReset && self.ShouldReset; |
| | 23 | | } |
| | 24 | | } |
| | 25 | | } |