示例#1
0
 protected override void Init()
 {
     base.Init();
     retract = false;
     Services.EventManager.Register <PlayerHooked> (OnPlayerHooked);
     player.StopListeningForInput();
     pullRb = pull.GetComponent <Rigidbody2D> ();
     Services.EventManager.Register <GameOver> (OnGameOver);
     Services.EventManager.Register <AbilityEnded>(OnAbilityEnded);
 }