protected override void OnControlStateChanged(Player player, bool underControl)
        {
            if (underControl)
            {
                base.OnControlStateChanged(player, true);

                player.FindBehaviour <AuraControllerClient>().AddHandler(this);
            }
            else
            {
                player.FindBehaviour <AuraControllerClient>().RemoveHandler(this);

                base.OnControlStateChanged(player, false);
            }
        }
Beispiel #2
0
        protected override void OnPlayerControlLost(Player player)
        {
            player.FindBehaviour <AuraControllerClient>().RemoveHandler(this);

            base.OnPlayerControlLost(player);
        }
Beispiel #3
0
        protected override void OnPlayerControlGained(Player player)
        {
            base.OnPlayerControlGained(player);

            player.FindBehaviour <AuraControllerClient>().AddHandler(this);
        }