Beispiel #1
0
    private void SetupBurstAmount(UnityEngine.InputSystem.InputAction.CallbackContext ctx)
    {
        if (ctx.ReadValue <float>() < 0.5)
        {
            return;
        }

        rps.SetupBurstAmount();
    }
Beispiel #2
0
    private void DestroyNPC(UnityEngine.InputSystem.InputAction.CallbackContext ctx)
    {
        if (ctx.ReadValue <float>() < 0.5)
        {
            return;
        }

        rps.DestroyNPC();
    }
Beispiel #3
0
    private void EnableBrust(UnityEngine.InputSystem.InputAction.CallbackContext ctx)
    {
        if (ctx.ReadValue <float>() < 0.5)
        {
            return;
        }

        rps.OrderBurst();
    }
Beispiel #4
0
    private void SwitchTransformSyncType(UnityEngine.InputSystem.InputAction.CallbackContext ctx)
    {
        if (ctx.ReadValue <float>() < 0.5)
        {
            return;
        }

        switch (rps.CurrentType)
        {
        case TransformSyncType.None:
            SwitchTransformSyncType(TransformSyncType.SerializeViewCurrent);
            break;

        case TransformSyncType.SerializeViewCurrent:

            SwitchTransformSyncType(TransformSyncType.SerializeViewTargetOnly);
            break;

        case TransformSyncType.SerializeViewTargetOnly:

            SwitchTransformSyncType(TransformSyncType.None);
            break;
        }
    }