示例#1
0
    // ================================================================================
    //  public methods
    // --------------------------------------------------------------------------------

    public void Add(SecondaryCharacter secondaryCharacter)
    {
        if (!characters.Contains(secondaryCharacter))
        {
            characters.Add(secondaryCharacter);
        }
    }
示例#2
0
 public void Remove(SecondaryCharacter secondaryCharacter)
 {
     if (characters.Contains(secondaryCharacter))
     {
         characters.Remove(secondaryCharacter);
     }
 }
示例#3
0
    public void DespawnRandom()
    {
        SecondaryCharacter visitor = characters.PickRandom();

        visitor.Leave();
    }