示例#1
0
 void Start()
 {
     LevelManager.InitializeLevelValues(this);
     sceneManager = GameObject.Find("SceneScripts").GetComponent<SceneManager>();
     EventManager.ListenForEvent(AzumiEventType.HitWall, OnHitWallEvent);
     EventManager.ListenForEvent(AzumiEventType.GameSwipe, OnPlayerActionEvent);
     EventManager.ListenForEvent(AzumiEventType.HitCollectible, OnHitCollectibleEvent);
     EventManager.ListenForEvent(AzumiEventType.HitDoor, OnHitDoorEvent);
     EventManager.ListenForEvent(AzumiEventType.OutOfBounces, OnOutOfBounces);
     EventManager.ListenForEvent(AzumiEventType.OutOfTime, OnOutOfTime);
     InitScoreUI();
     swipesRemaining = MaxTaps;
 }