public static void GenerateRandom(Vector2 range, int count, Action <int[]> store, Action callBack) { storeGeneratedRandomValues = store; generateRandomValuesCallBack = callBack; if (IsServer) { CurrentPlayer.CmdGenerateRandomValues(range, count); } if (isReady) { InvokeStoreGeneratedValue(); InvokeCallback(); } }