public bool locomotionInputEnabled = true;                  // setting: whether this locomotion's input is currently enabled



    // methods //


    // method: toggle whether this module's input is currently enabled based on the given toggling //
    public void toggleLocomotionInputEnablement(Toggling toggling)
    => locomotionInputEnabled = locomotionInputEnabled.toggledBy(toggling);
Exemplo n.º 2
0
    // methods for: player zonage toggling //

    // method: toggle the tracking of whether the player is within zonage according to the given toggling //
    public static void toggleZonage(Toggling toggling)
    {
        playerWithinZonage = playerWithinZonage.toggledBy(toggling);
    }
Exemplo n.º 3
0
 /// <summary>
 /// Triggers the Toggling event.
 /// </summary>
 /// <param name="e">The event args.</param>
 public virtual void OnToggle(EventArgs e)
 {
     Toggling?.Invoke(this, e);
 }
Exemplo n.º 4
0
    public bool inputEnabled = true;                    // setting: whether this module's input is currently enabled



    // methods //


    // method: toggle whether this module's input is currently enabled based on the given toggling //
    public void toggleInputEnablement(Toggling toggling)
    {
        inputEnabled = inputEnabled.toggledBy(toggling);
    }