bool HasFairyOfColor(FairyColor pColor) { if(pColor == FairyColor.RED) return hasRedFairy; else if(pColor == FairyColor.BLUE) return hasBlueFairy; else if(pColor == FairyColor.GREEN) return hasGreenFairy; return true; }
void GainFairy(FairyColor pColor) { if(pColor == FairyColor.RED) hasRedFairy = true; else if(pColor == FairyColor.BLUE) hasBlueFairy = true; else if(pColor == FairyColor.GREEN) hasGreenFairy = true; if(hasRedFairy&&hasBlueFairy&&hasGreenFairy) { GameManager.globalInstance.OpenShrine(); } }