示例#1
0
 /// <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);
 }
示例#2
0
    public void SetPosition(UnityPosition pos, bool isNotifyView = true)
    {
        Position = pos;

        if (isNotifyView && ViewModel != null)
        {
            ViewModel.Notify(NotificationName.CharacterPositionChanged, this, pos);
        }
    }