Example #1
0
    public static VibratorPlugin GetInstance()
    {
        if(instance==null){
            container = new GameObject();
            container.name="VibratorPlugin";
            instance = container.AddComponent( typeof(VibratorPlugin) ) as VibratorPlugin;
            DontDestroyOnLoad(instance.gameObject);
            aupHolder = AUPHolder.GetInstance();
            instance.gameObject.transform.SetParent(aupHolder.gameObject.transform);
        }

        return instance;
    }
Example #2
0
    public static VibratorPlugin GetInstance()
    {
        if (instance == null)
        {
            container      = new GameObject();
            container.name = "VibratorPlugin";
            instance       = container.AddComponent(typeof(VibratorPlugin)) as VibratorPlugin;
            DontDestroyOnLoad(instance.gameObject);
            aupHolder = AUPHolder.GetInstance();
            instance.gameObject.transform.SetParent(aupHolder.gameObject.transform);
        }

        return(instance);
    }
Example #3
0
 // Use this for initialization
 void Start()
 {
     vibratorPlugin = VibratorPlugin.GetInstance();
     vibratorPlugin.SetDebug(0);
     vibratorPlugin.Init();
 }
Example #4
0
 // Use this for initialization
 void Start()
 {
     vibratorPlugin = VibratorPlugin.GetInstance();
     vibratorPlugin.SetDebug(0);
     vibratorPlugin.Init();
 }