Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ArmanDoesStuff 2017
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public static class ArmanLibrary
- {
- //Check if string only contains digits
- public static bool IsDigitsOnly(this string str)
- {
- foreach (char c in str)
- {
- if (c < '0' || c > '9')
- {
- return false;
- }
- }
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement