Motion Manager
Description
Usage
// Component place on the 'A' GameObject.
//This variable is used to control how this object's translation will look.
[SerializeField]
private SpringData translation;
//The bridge value that connects this component to the Motion Manager.
private Handle handler;
//Start can be used, but Awake is better for most cases.
private void Awake(){
//Use Subscribe in order for the Motion Manager to keep track of this object.
handle = MotionManager.Subscribe(transform, translationData);
}Why subscribe an object to the manager in the first place?
Last updated