コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: HealthView.cs プロジェクト: twoKitties/Spaceship
 private void Awake()
 {
     _text = GetComponent <Text>();
     healthEvent.Register(this);
 }