Пример #1
0
 // Use this for initialization
 void Start()
 {
     _interacaoObjeto = GetComponent <InteracaoObjeto>();
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     _player          = GameObject.FindWithTag("Player").GetComponent <Player>();
     _playerData      = GameObject.FindGameObjectWithTag("Data").GetComponent <PlayerData>();
     _interacaoObjeto = GetComponent <InteracaoObjeto>();
 }