void OnEnable() { currentMonString = ""; int currentMonID = MonAgent.GetCurrentMonID(); currentMon = MonAgent.MonFromID(currentMonID); if (currentMonID != -1) { currentMonString = currentMon.ToString(); } newMonString = ""; int newMonID = MonAgent.GetLastFoundMonID(); newMon = MonAgent.MonFromID(newMonID); if (newMonID != -1) { newMonString = newMon.ToString(); } vsString = "VS"; StartCoroutine("DoBattle"); }
void OnEnable() { content = "Find a friend!"; int monID = MonAgent.GetCurrentMonID(); if (monID != -1) { content = MonAgent.MonFromID(monID).ToString(); } VisualEncryptorAgent.DisplaySprite(monID); }