IEnumerator waitXSeconds(float X) { yield return(new WaitForSeconds(X)); if (gameObject.name.Contains("(Clone)")) { game_manager.missedFood(); } Refresh(); //TODO(Animation): Food will crumble before it disappears }
IEnumerator waitXSeconds(float X) { yield return(new WaitForSeconds(X)); if (gameObject.name.Contains("(Clone)")) { game_manager.missedFood(); } Refresh(); //TODO(Animation): Food will crumble before it disappears }