/// <summary> /// Start is called on the frame when a script is enabled just before /// any of the Update methods is called the first time. /// </summary> private void Start() { _state = GetComponent <PlayerState> (); _body = GetComponent <PlayerBody> (); _control = GetComponent <PlayerControl> (); }
/// <summary> /// Start is called on the frame when a script is enabled just before /// any of the Update methods is called the first time. /// </summary> private void Start() { _input = GetComponent <PlayerInput> (); _body = GetComponent <PlayerBody> (); _state = GetComponent <PlayerState> (); }