public override void CopyNode(Node original) { base.CopyNode(original); var node = (WaitNode)original; GetSceneBy = node.GetSceneBy; WaitFor = node.WaitFor; AnyValue = node.AnyValue; IgnoreUnityTimescale = node.IgnoreUnityTimescale; RandomDuration = node.RandomDuration; Duration = node.Duration; DurationMax = node.DurationMax; DurationMin = node.DurationMin; SceneBuildIndex = node.SceneBuildIndex; GameEvent = node.GameEvent; SceneName = node.SceneName; UIViewTriggerAction = node.UIViewTriggerAction; ViewCategory = node.ViewCategory; ViewName = node.ViewName; UIButtonTriggerAction = node.UIButtonTriggerAction; ButtonCategory = node.ButtonCategory; ButtonName = node.ButtonName; UIDrawerTriggerAction = node.UIDrawerTriggerAction; DrawerName = node.DrawerName; CustomDrawerName = node.CustomDrawerName; }
private void Reset() { ViewCategory = UIView.DefaultViewCategory; ViewName = UIView.DefaultViewName; ListenForAllUIViews = false; TriggerAction = UIViewBehaviorType.Show; Event = new UIViewEvent(); }
//might not need private void UIViewEvents(UIView view, UIViewBehaviorType behaviourType) { switch (behaviourType) { case UIViewBehaviorType.Unknown: break; case UIViewBehaviorType.Show: break; case UIViewBehaviorType.Hide: break; case UIViewBehaviorType.Loop: break; } }
public override void CopyNode(Node original) { base.CopyNode(original); var node = (PortalNode)original; m_gameEvent = node.m_gameEvent; ListenFor = node.ListenFor; AnyValue = node.AnyValue; UIViewTriggerAction = node.UIViewTriggerAction; ViewCategory = node.ViewCategory; ViewName = node.ViewName; UIButtonTriggerAction = node.UIButtonTriggerAction; ButtonCategory = node.ButtonCategory; ButtonName = node.ButtonName; UIDrawerTriggerAction = node.UIDrawerTriggerAction; DrawerName = node.DrawerName; CustomDrawerName = node.CustomDrawerName; }
/// <summary> Initializes a new instance of the class with reference to the UIView and the UIViewBehaviorType, of the UIViewBehavior, that triggered this message </summary> /// <param name="view"> Reference to the UIView that sent this message </param> /// <param name="type"> UIViewBehaviorType of the UIViewBehavior that triggered the UIView to send this message </param> public UIViewMessage(UIView view, UIViewBehaviorType type) { View = view; Type = type; }
/// <summary> Initializes a new instance of the class with a reference to the UIView that sent this message </summary> /// <param name="view"> Reference to the UIView that sent this message </param> public UIViewMessage(UIView view) { View = view; Type = UIViewBehaviorType.Unknown; }