/// <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; }
/// <summary> /// Initialize the transition starting from this node. /// </summary> /// <param name="obj"></param> public void StartTransition(object obj) { BehaviourEditorWindow.StartTransition(Rect, this, BehaviourEditorWindow.NeutralColor); }
/// <summary> /// Remove the node from the editor. /// </summary> /// <param name="obj"></param> public void Delete(object obj) { Exist = false; BehaviourEditorWindow.RemoveNode(this); }