public LocalPhysicsEngine getLocalPhysicsEngine() { if (localPhysicsEngine == null) { localPhysicsEngine = this.GetComponentInParent <LocalPhysicsEngine>(); } return(localPhysicsEngine); }
public LocalPhysicsEngine getLocalPhysicsEngine() { if (localPhysicsEngine == null) { localPhysicsEngine = this.gameObject.GetComponent<LocalPhysicsEngine>(); } return localPhysicsEngine; }
private void Start() { localPhysicsEngine = getLocalPhysicsEngine(); animator = getAnimator(); }