예제 #1
0
 /// <summary>
 /// Connects a KeyCode to a UserInput value and returns if it had to overwrite something
 /// </summary>
 /// <param name="KeyCode">The KeyCode to look for</param>
 /// <param name="UserInput">The type of user input to execute</param>
 /// <returns>Was a pre-existing value overwritten</returns>
 public bool StorePlayerData(KeyCode kc, Player.UserInput ui)
 {
     if (PlayControl.ContainsKey(kc))
     {
         PlayControl[kc] = ui;
         return(true);
     }
     else
     {
         PlayControl.Add(kc, ui);
         return(false);
     }
 }