public static void SetTimer(float timeToPass, Action function) { TimerObject obj = new TimerObject(timeToPass, function); StartCoroutine(obj.TimerUpdate()); }