24 lines
		
	
	
		
			369 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			369 B
		
	
	
	
		
			C#
		
	
	
	
 | 
						|
using Godot;
 | 
						|
 | 
						|
 | 
						|
namespace Rokojori
 | 
						|
{  
 | 
						|
  [GlobalClass ]
 | 
						|
  public partial class SetNodeState : Action
 | 
						|
  {
 | 
						|
    [Export]
 | 
						|
    public Node[] enable;
 | 
						|
 | 
						|
    [Export]
 | 
						|
    public Node[] disable;
 | 
						|
 | 
						|
 | 
						|
    protected override void _OnTrigger()
 | 
						|
    {
 | 
						|
      Arrays.ForEach( enable,  n => NodeState.Enable( n ) );
 | 
						|
      Arrays.ForEach( disable, n => NodeState.Disable( n ) );
 | 
						|
    }
 | 
						|
  }
 | 
						|
 | 
						|
} |