public void AddAvatar(AvatarComponent avatar) { this.Avatars.Add(avatar); }
public void RemoveAvatar(AvatarComponent avatar) { this.Avatars.Remove(avatar); }
public VMAvatar(GameObject obj) : base(obj) { Name = "Sim"; BodyStrings = Object.Resource.Get<STR>(Object.OBJ.BodyStringID); SetAvatarType(BodyStrings); SkinTone = AppearanceType.Light; if (UseWorld) { WorldUI = new AvatarComponent(); var avatarc = (AvatarComponent)WorldUI; avatarc.Avatar = Avatar; } for (int i = 0; i < 16; i++) { MotiveChanges[i] = new VMMotiveChange(); MotiveChanges[i].Motive = (VMMotive)i; } }