public override void PostInitialize()
        {
            //Try to find the Metadata component and pull player information from it.
            player = ParentGameObject.GetMetadata("player") as Player;

            base.PostInitialize();
        }
        public void SetPlayer(LogicalPlayerIndex index, PlayerIndex controller)
        {
            if (!players.ContainsKey(index))
            {
                Player player = new Player(index, controller);
                player.InputHandler = InputHandler;

                if (InputHandler != null)
                    InputHandler.SetPlayerMapping(index, controller);

                players.Add(index, player);
            }
        }
        public override void Reallocate()
        {
            player = null;

            base.Reallocate();
        }
        public override void PostInitialize()
        {
            player = ParentGameObject.GetMetadata("player") as Player;

            base.Initialize();
        }
 protected BasePlayerInputComponent(BasePlayerInputComponent old)
 {
     this.Player = old.Player;
 }