Пример #1
0
 private void OnTransformChange()
 {
     WorldSimulator.SetPosition(this, Owner.Transform.Position);
 }
Пример #2
0
 protected override void OnEnable()
 {
     WorldSimulator.Add(this);
     Owner.Transform.OnChange += OnTransformChange;
 }
Пример #3
0
 protected override void OnDisable()
 {
     Owner.Transform.OnChange -= OnTransformChange;
     WorldSimulator.Remove(this);
 }