示例#1
0
 /// <summary>
 /// Initialize the transition starting from this node.
 /// </summary>
 /// <param name="obj"></param>
 private void StartTransition(object obj)
 {
     if ((bool)obj)
     {
         BehaviourEditorWindow.StartTransition(Rect, this, BehaviourEditorWindow.LoopColor);
     }
     else
     {
         BehaviourEditorWindow.StartTransition(Rect, this, BehaviourEditorWindow.NeutralColor, true);
     }
 }
        /// <summary>
        /// Initialize the transition starting from this node.
        /// </summary>
        /// <param name="obj"></param>
        private void StartTransition(object obj)
        {
            var str = (string)obj;

            switch (str)
            {
            case "yes":
                BehaviourEditorWindow.StartTransition(Rect, this, BehaviourEditorWindow.PositiveColor);
                break;

            case "no":
                BehaviourEditorWindow.StartTransition(Rect, this, BehaviourEditorWindow.NegativeColor, true);
                break;
            }
        }
 private static void InitWindow()
 {
     _instance = Instance;
 }
示例#4
0
 /// <summary>
 /// Initialize the transition starting from this node.
 /// </summary>
 /// <param name="obj"></param>
 public void StartTransition(object obj)
 {
     BehaviourEditorWindow.StartTransition(Rect, this, BehaviourEditorWindow.NeutralColor);
 }
示例#5
0
 /// <summary>
 /// Remove the node from the editor.
 /// </summary>
 /// <param name="obj"></param>
 public void Delete(object obj)
 {
     Exist = false;
     BehaviourEditorWindow.RemoveNode(this);
 }