/// <summary> /// Constructor. /// </summary> /// <param name="id">id of object</param> /// <param name="name">name of object</param> /// <param name="commandHint">command hint for interacting with object</param> public ThingModel(string id, string name, string commandHint) { Id = id; Name = name; CommandHint = commandHint; Position = new UnityPosition(0f, 0f, 0f); }
public void SetPosition(UnityPosition pos, bool isNotifyView = true) { Position = pos; if (isNotifyView && ViewModel != null) { ViewModel.Notify(NotificationName.CharacterPositionChanged, this, pos); } }