Пример #1
0
    private void PushSplit()
    {
        Matter m = SplitterMatterType;

        OutputOne.Get(m).Push(FlowPerSecond / 2f * Time.fixedDeltaTime);
        OutputTwo.Get(m).Push(FlowPerSecond / 2f * Time.fixedDeltaTime);
    }
Пример #2
0
    private void PushSingle()
    {
        Matter m = SplitterMatterType;

        if (OutputOne != null)
        {
            OutputOne.Get(m).Push(FlowPerSecond * Time.fixedDeltaTime);
        }
        else if (OutputTwo != null)
        {
            OutputTwo.Get(m).Push(FlowPerSecond * Time.fixedDeltaTime);
        }
    }