예제 #1
0
 public void OnMenuActionSelected( MenuActionNode action )
 {
     if( menu != null && menu.ContainsAction( action ) )
     {
         OnActionSelected( action );
     }
 }
예제 #2
0
 public void OnMenuActionSelected( MenuActionNode action )
 {
     if( action.id == pair.actionId )
     {
         OnSelected();
     }
 }
예제 #3
0
 bool IsDestinationValid( MenuActionNode action )
 {
     return ( action.destinationId != null && action.destinationId != "");
 }
예제 #4
0
    Rect GetElementPositionInScreen( MenuActionNode action, MenuNode menu )
    {
        Rect result = new Rect( menu.position.x + action.position.x,
                                             menu.position.y + action.position.y,
                                             action.position.width,
                                             action.position.height
                                           );

        return result;
    }
예제 #5
0
 public virtual void OnActionSelected( MenuActionNode action )
 {
     //Debug.Log( this + " received action selected: " + action.name );
 }
예제 #6
0
 void OnMenuActionSelected( MenuActionNode action )
 {
     Debug.Log( "Do standalone action " + action.name );
     //enabled = false;
 }
예제 #7
0
 public void SetAction( MenuActionNode action )
 {
     pair = new MenuActionPair( action.parentId, action.id );
 }