void Start() { OnUpdateScore?.Invoke(_score); _playerObj = OnGetPlayerObj?.Invoke(); if (_playerObj != null) { _playerScript = _playerObj.GetComponent <Player>(); } }
void Start() { GameObject playerObj = OnGetPlayerObj?.Invoke(); if (playerObj != null) { _playerTransform = playerObj.transform; } }