public ActionControlModel(ActionControl control, StackPanel parent, Level level, Obstacle obs) { mControlParent = control; mLevel = level; mSwitch = obs; mParent = parent; mData = new Half_Caked.KeyValuePair<Guid, int>(obs.Guid, 0); mTarget= Obstacles[0]; mTarget.Actions.Add(mData); }
public ActionControlModel(ActionControl control, StackPanel parent, Level level, Obstacle obs, Obstacle target) { mControlParent = control; mLevel = level; mSwitch = obs; mParent = parent; mData = target.Actions.Find(x => x.Key == obs.Guid); mTarget = target; obs.Actions.Add(mData); }