public override void ControlOfEntityGained(BoltEntity arg) { if (arg.GetComponent <PlayerController> ()) { me = arg; meState = me.GetState <IPlayerState> (); meState.AddCallback("health", HealthChanged); HealthChanged(); } }