コード例 #1
0
    protected override void Update()
    {
        base.Update();

        if (IsInteractable())
        {
            // Controls start
            foreach (ControlScheme cs in human_controls)
            {
                if (InputExt.GetKeyDownCS(cs, Control.Start))
                {
                    OnInputStart(cs);
                }
            }

            // Color switching
            for (int i = 0; i < 2; ++i)
            {
                SwitchColor(i, InputExt.GetAxisOnce(i, Control.X, true));
            }
        }
    }