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

                HealthChanged();
            }
        }