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(); } }
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 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(); } }
/** Calls Updates in IHandModels that are part of this HandRepresentation */ public override void UpdateRepresentation(Hand hand, ModelType modelType) { handModel.SetLeapHand(hand); handModel.UpdateHand(); }