Пример #1
0
        public override void AddModel(IHandModel model)
        {
            // Check is Remote or not
            if (model.isRemote != this.IsRemote_)
            {
                return;
            }

            if (handModels == null)
            {
                handModels = new List <IHandModel>();
                // 有Bug????
            }
            handModels.Add(model);
            if (model.GetLeapHand() == null)
            {
                model.SetLeapHand(MostRecentHand);
                model.InitHand();
                model.BeginHand();
                model.UpdateHand();
            }
            else
            {
                model.SetLeapHand(MostRecentHand);
                model.BeginHand();
            }
        }
Пример #2
0
    public override void AddModel(IHandModel model) {
      if (handModels == null) {
        handModels = new List<IHandModel>();
      }
      handModels.Add(model);
      if (model.GetLeapHand() == null) {
        model.SetLeapHand(MostRecentHand);
        model.InitHand();
        model.BeginHand();
        model.UpdateHand();
      }
      else {
        model.SetLeapHand(MostRecentHand);
        model.BeginHand();

      }
    }
Пример #3
0
 public override void AddModel(IHandModel model)
 {
     if (handModels == null)
     {
         handModels = new List <IHandModel>();
     }
     handModels.Add(model);
     if (model.GetLeapHand() == null)
     {
         model.SetLeapHand(MostRecentHand);
         model.InitHand();
         model.BeginHand();
         model.UpdateHand();
     }
     else
     {
         model.SetLeapHand(MostRecentHand);
         model.BeginHand();
     }
 }
    public HandProxy(HandPool parent, IHandModel handModel, Hand hand) :
      base(hand.Id)
    {
      this.parent = parent;
      this.handModel = handModel;

      // Check to see if the hand model has been initialized yet
      if (handModel.GetLeapHand() == null) {
        handModel.SetLeapHand(hand);
        handModel.InitHand();
      } else {
        handModel.SetLeapHand(hand);
      }
      handModel.BeginHand();
    }
Пример #5
0
        public HandProxy(HandPool parent, IHandModel handModel, Hand hand) :
            base(hand.Id)
        {
            this.parent    = parent;
            this.handModel = handModel;

            // Check to see if the hand model has been initialized yet
            if (handModel.GetLeapHand() == null)
            {
                handModel.SetLeapHand(hand);
                handModel.InitHand();
            }
            else
            {
                handModel.SetLeapHand(hand);
            }
            handModel.BeginHand();
        }