Пример #1
0
        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;
        }
Пример #2
0
 private void Reset()
 {
     DrawerName            = UIDrawer.DefaultDrawerName;
     ListenForAllUIDrawers = false;
     TriggerAction         = UIDrawerBehaviorType.Open;
     Event = new UIDrawerEvent();
 }
Пример #3
0
        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;
        }
Пример #4
0
 /// <summary> Resets this instance to the default values </summary>
 /// <param name="behaviorType"> Behavior type </param>
 public void Reset(UIDrawerBehaviorType behaviorType)
 {
     DrawerBehaviorType = behaviorType;
     OnStart            = new UIAction();
     OnFinished         = new UIAction();
 }
Пример #5
0
 /// <summary> Initializes a new instance of the class </summary>
 /// <param name="behaviorType"> Behavior type </param>
 public UIDrawerBehavior(UIDrawerBehaviorType behaviorType)
 {
     Reset(behaviorType);
 }
 /// <summary>
 ///     Initializes a new instance of the class with reference to the UIDrawer and the UIDrawerBehaviorType,
 ///     of the UIDrawerBehavior, that triggered that sent this message
 /// </summary>
 /// <param name="drawer"> Reference to the UIDrawer that sent this message </param>
 /// <param name="type"> UIDrawerBehaviorType of the UIDrawerBehavior that triggered the UIDrawer to send this message </param>
 public UIDrawerMessage(UIDrawer drawer, UIDrawerBehaviorType type)
 {
     Drawer = drawer;
     Type   = type;
 }