UHSampleGame.Players.Player.SetupAvatar C# (CSharp) Method

SetupAvatar() public method

public SetupAvatar ( ) : void
return void
        public void SetupAvatar()
        {
            //avatar = new AnimatedModel(PlayerNum, TeamNum,
            //        ScreenManager.Game.Content.Load<Model>("AnimatedModel\\dude"));

            //avatar.Scale = 2.0f;
            //avatar.PlayClip("Take 001");
            //avatar.Position = new Vector3(PlayerBase.Position.X, 200.0f, PlayerBase.Position.Z);
            //avatarMoved = false;
            //avatarFollowingTile = new StaticModel(ScreenManager.Game.Content.Load<Model>("Objects\\Copter\\squarePlacer_red"), avatar.Position);
            //avatarFollowingTile.Scale = 4.0f;

            avatar = new Avatar(
                ScreenManager.Game.Content.Load<Model>("Objects\\Copter\\player0" + PlayerNum + "Ship01"),
                new Vector3(PlayerBase.Position.X, 300.0f, PlayerBase.Position.Z));
            avatar.Scale = 6.0f;

            avatarMoved = false;
            avatarFollowingTile = new StaticModel(ScreenManager.Game.Content.Load<Model>("Objects\\Copter\\Boxes\\box_0" + PlayerNum),
                    TileMap.GetTilePosFromPos(avatar.Position));

            avatarFollowingTile.glow = true;
            avatarFollowingTile.Scale = 4.0f;
        }