static public string getCreatureTypeString(creatureListEnum type) { switch (type) { case creatureListEnum.Anomalocaris: return("Anomalocaris"); case creatureListEnum.Aysheaia: return("Aysheaia"); case creatureListEnum.Hallucigenia: return("Hallucigenia"); case creatureListEnum.Opabinia: return("Opabinia"); case creatureListEnum.Trilobite: return("Trilobite"); case creatureListEnum.Amoeba: return("Amoeba"); case creatureListEnum.Worm: return("Worm"); case creatureListEnum.Midstage1: return("Midstage1"); case creatureListEnum.Midstage2: return("Midstage2"); case creatureListEnum.Midstage3: return("Midstage3"); case creatureListEnum.Plankton1: return("Plankton1"); case creatureListEnum.Plankton2: return("Plankton2"); case creatureListEnum.Plankton3: return("Plankton3"); case creatureListEnum.Plankton4: return("Plankton4"); case creatureListEnum.Plankton5: return("Plankton5"); case creatureListEnum.Plankton6: return("Plankton6"); default: return(""); } }
void createCreatureEventDebug(creatureListEnum type) { Debug.Log("Spawn a dude! (" + getCreatureTypeString(type) + ")"); }