SwitchScript.InteractWithObjects C# (CSharp) Method

InteractWithObjects() public method

public InteractWithObjects ( ) : void
return void
    void InteractWithObjects()
    {
        //        if (allowSendActivation)
        //        {
        for (int i = 0; i < objectsToActivate.Length; i++)
        {
            if (objectsToActivate[i].GetComponent<Interact>() == true)
                objectsToActivate[i].GetComponent<Interact>().interact();
        }
        //            allowSendActivation = false; // only activate once! (because the activated is a bool)
        //        }
    }