コード例 #1
0
 public bool GetInputActive(eInput input)
 {
     if (!Theatre.CanPlayersMove())
     {
         return(false);
     }
     return(SimpleInput.GetInputActive(input, index: ControlType));
 }
コード例 #2
0
    protected virtual void Update()
    {
        for (int loop = 0; loop < SimpleInput.ControlSetCount; loop++)
        {
            if (Players.TryGetValue(loop, out var player))
            {
                if (player == null)
                {
                    Players.Remove(loop);
                    AddPlayer(loop);
                }
            }

            if (!Players.ContainsKey(loop) &&
                SimpleInput.GetInputActive(eInput.Dash, loop))
            {
                AddPlayer(loop);
            }
        }
    }