Beispiel #1
0
    void OnTriggerEnter(Collider col)
    {
        SwitchBehavior sb = GetComponent <SwitchBehavior>();

        sb.setOn(true);
    }
Beispiel #2
0
    void OnTriggerExit(Collider col)
    {
        SwitchBehavior sb = GetComponent <SwitchBehavior>();

        sb.setOn(false);
    }