Пример #1
0
	public void RemoveEnabler(FNodeEnabler enabler)
	{
		if(_enablers == null) return;
		
		if(_isOnStage)
		{
			enabler.Disconnect();	
		}
		
		_enablers.Remove(enabler);
	}
Пример #2
0
	public void AddEnabler(FNodeEnabler enabler)
	{
		if(_enablers == null) _enablers = new List<FNodeEnabler>();
		
		_enablers.Add(enabler);
		
		if(_isOnStage)
		{
			enabler.Connect();	
		}
	}
Пример #3
0
    protected void RemoveEnabler(FNodeEnabler enabler)
    {
        if (_enablers == null)
        {
            return;
        }

        if (_isOnStage)
        {
            enabler.Disconnect();
        }

        _enablers.Remove(enabler);
    }
Пример #4
0
    protected void AddEnabler(FNodeEnabler enabler)
    {
        if (_enablers == null)
        {
            _enablers = new List <FNodeEnabler>();
        }

        _enablers.Add(enabler);

        if (_isOnStage)
        {
            enabler.Connect();
        }
    }