void Update()
    {
        if (conPointOne.GetWireStatus())
        {
            ApplyPowerToAll();
        }

        if (conPointTwo.GetWireStatus())
        {
            ApplyPowerToAll();
        }

        if (conPointThree.GetWireStatus())
        {
            ApplyPowerToAll();
        }
    }
示例#2
0
    void Update()
    {
        if (leverDown)
        {
            Debug.Log(conPointOne.isTransferringPower + " " + conPointTwo.isTransferringPower);

            if (conPointOne.GetWireStatus())
            {
                conPointTwo.isTransferringPower = true;
            }

            if (conPointTwo.GetWireStatus())
            {
                conPointOne.isTransferringPower = true;
            }
        }
    }