Пример #1
0
 private void Awake()
 {
     _rigidbody     = GetComponent <Rigidbody>();
     _colorChanger  = GetComponent <ColorChanger>();
     _sfxPresenter  = GetComponent <SFXPresenter>();
     _figureRotator = GetComponent <FigureRotator>();
 }
Пример #2
0
 private void Awake()
 {
     _colorChanger     = GetComponentInParent <ColorChanger>();
     _backSideRenderer = GetComponent <MeshRenderer>();
 }