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

        if (playerObj != null)
        {
            _playerTransform = playerObj.transform;
        }
    }