Example #1
0
    public void Activate(GameObject playerObject, bool status)
    {
        switch (activatedType)
        {
        case ButtonActivatedType.Door:
            door.Activation(playerObject, status);
            return;

        case ButtonActivatedType.Elevator:
            ele.Activation(playerObject, status);
            return;

        case ButtonActivatedType.None:
            Debug.Log("No Activation() behavior for this button activated object found!");
            return;
        }
    }