public void SetRb(Rigidbody rb) { _component = new CachedUnityComponent <Rigidbody>(rb); if (Rb != null) { RigidbodySetup.Setup(Rb); } }
public void SetRb(Rigidbody rb) { Rb = rb; if (Rb != null) { RigidbodySetup.Setup(Rb); } }
public RigidbodyComponent(SerializationInfo info, StreamingContext context) { _component = info.GetValue(nameof(_component), _component); RigidbodySetup = new RigidbodySettings(); if (Rb != null) { RigidbodySetup.Setup(Rb); } }
public RigidbodyComponent(Rigidbody rb) { RigidbodySetup = new RigidbodySettings(); _component = new CachedUnityComponent <Rigidbody>(rb); if (Rb != null) { RigidbodySetup.Setup(Rb); } }
public RigidbodyComponent(Rigidbody rb) { RigidbodySetup = new RigidbodySettings(); Rb = rb; if (Rb != null) { RigidbodySetup.Setup(Rb); } }
void Awake() { _rigidbody = GetComponent <Rigidbody>(); _rigidbodySetup.Setup(_rigidbody); }