Beispiel #1
0
 public RotateToTarget(SerializationInfo info, StreamingContext context)
 {
     Position      = info.GetValue(nameof(Position), Position);
     RotationSpeed = info.GetValue(nameof(RotationSpeed), RotationSpeed);
     TargetTr      = info.GetValue(nameof(TargetTr), TargetTr);
 }
Beispiel #2
0
 public FloatingTextCombatComponent(SerializationInfo info, StreamingContext context)
 {
     _component = info.GetValue(nameof(_component), _component);
     Offset     = info.GetValue(nameof(Offset), Offset);
 }
Beispiel #3
0
 public RotateToTarget(Vector3 position, Transform targetTr, float rotationSpeed)
 {
     Position      = position;
     TargetTr      = new CachedTransform(targetTr);
     RotationSpeed = rotationSpeed;
 }
 public FpPivotComponent(Transform tr)
 {
     _tr = new CachedTransform(tr);
 }
Beispiel #5
0
 public FloatingTextCombatComponent(Transform tr, Vector3 offset)
 {
     _component = new CachedTransform(tr);
     Offset     = offset;
 }
 public SpriteInstancedRendererComponent(SerializationInfo info, StreamingContext context)
 {
     _spriteTr = info.GetValue(nameof(_spriteTr), _spriteTr);
 }
 public void Dispose()
 {
     _spriteTr?.Dispose();
     _spriteTr = null;
 }
 public SpriteInstancedRendererComponent(Transform spriteTr)
 {
     _spriteTr = new CachedTransform(spriteTr);
 }
 public CosmeticFlightBanking(SerializationInfo info, StreamingContext context)
 {
     _bankTransform = info.GetValue(nameof(_bankTransform), _bankTransform);
     ItemPool.LoadAsset <FlightControlConfig>(info.GetValue(nameof(Config), ""), a => Config = a);
 }
 public CosmeticFlightBanking(Transform bankTransform, FlightControlConfig config)
 {
     _bankTransform = new CachedTransform(bankTransform);
     Config         = config;
 }
Beispiel #11
0
 public PathfindingDebugging(SerializationInfo info, StreamingContext context)
 {
     LineR       = info.GetValue(nameof(LineR), LineR);
     Tm          = info.GetValue(nameof(Tm), Tm);
     DebugObject = info.GetValue(nameof(DebugObject), DebugObject);
 }
Beispiel #12
0
 public SpriteSimpleRendererComponent(Transform spriteTr)
 {
     _spriteTr = new CachedTransform(spriteTr);
 }