eye-therapy-2 / Assets / Scripts / Builder / Building Console / RowLever.cs
RowLever.cs
Raw
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RowLever : LeverTwoWayAction
{
    [Space]
    [SerializeField] private BuildingManagerAlt buildingManager = null;

    protected override void NegativeAction()
    {
        buildingManager.ChangeBuildingRow(false ^ invertDirections);
    }

    protected override void PositiveAction()
    {
        buildingManager.ChangeBuildingRow(true ^ invertDirections);
    }
}