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