Beispiel #1
0
 public void OnApplicationFocus(bool hasFocus)
 {
     if (hasFocus)
     {
         WiggleKit.StartHapticEngine();
     }
 }
Beispiel #2
0
    void Awake()
    {
        if (_instance != null)
        {
            Destroy(gameObject);
            return;
        }

        WiggleKit.StartHapticEngine();
        DontDestroyOnLoad(gameObject);
    }