Example #1
0
 private void Awake()
 {
     _rigidbody = GetComponent <Rigidbody>();
     _move      = GetComponent <IMoveInput>();
     _rotate    = GetComponent <IRotationInput>();
     _transform = transform;
 }
Example #2
0
 private void Awake()
 {
     _input     = GetComponent <IRotationInput>();
     _rigidbody = GetComponent <Rigidbody>();
 }
Example #3
0
 private void Awake()
 {
     _rotate    = GetComponent <IRotationInput>();
     _interact  = GetComponent <IInteractInput>();
     _rigidbody = GetComponent <Rigidbody>();
 }
 private void Awake()
 {
     _rotate         = GetComponent <IRotationInput>();
     _objectToRotate = transform.gameObject;
 }