private void Awake() { if (LevelDataController.Instance) { _levelData = LevelDataController.Instance.CurrentData; } else { Debug.LogError("LevelDataController isn't present in the scene"); return; } playerDeathEvent.Register(this); pointsController.onPointsUpdated += CheckPointsCount; }
private void Awake() { _text = GetComponent <Text>(); healthEvent.Register(this); }