// todo: Handled here or in PlayerBuddy?
 public PlayerBuddy buddyCheck(BuddySkillEnum buddyCheckId)
 {
     foreach (PlayerBuddy buddy in playerBuddies)
     {
         if (buddy.buddySkillEnum == buddyCheckId)
         {
             return(buddy);
         }
     }
     return(null);
 }
示例#2
0
    // todo: Handled here or in LevelSC?

    /**
     * Checks if this buddy matches the enum being searched
     */
    public bool buddyCheck(BuddySkillEnum skillEnum)
    {
        if (buddySkillEnum == skillEnum)
        {
            return(true);
        }
        else
        {
            return(false);
        }
    }