Duplicate the customer user roles in woocommerce via code

In particular cases, it can be useful to add a user roles group cloned.As you know the default groups in Worpress are Administrator, Editor, Author, Contributor, Subscriber.Woocommerce adds the following: Shop manager and Customer.The following code lets you create a new User Roles group base on cloning the customer roles: Questions? Suggestions? Please leave a … Read more

Text to Speech crash on unity 5

I’m working on a stable and updated text to speech for unity 5 click here for description examples and code If you are trying the “DaG_II first attempt (here)” to make unity talk on windows, using MSDN SAPI, your build version may crash Joffle from the forum unity3d figure out how to solve it: when GetVoices is called, the CustomMarshalers.dll … Read more

Scene pause Unity 5 (c#)

Pausing a scene using UnityEngine; using System.Collections; //Finalmarco.com public class PausaGioco : MonoBehaviour { bool paused = false; void Update () { if(Input.GetKeyDown(“p”)) { gamePaused(); } } void OnGUI() { if (paused == true) { GUILayout.Label(“GAME IS PAUSED”); if(GUILayout.Button (“CLICK TO UNPAUSE”)) { gamePaused(); } } } void gamePaused() { if (Time.timeScale == 1) { … Read more