示例#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>();
 }