public static void Initialize()
    {
        if (Self != null) {
            return;
        }

        var gameObject = new GameObject("DeviceOrientationNotifier");
        Self = gameObject.AddComponent<DeviceOrientationNotifier>();
        DontDestroyOnLoad(gameObject);
    }
    public static void Initialize()
    {
        if (Self != null)
        {
            return;
        }

        var gameObject = new GameObject("DeviceOrientationNotifier");

        Self = gameObject.AddComponent <DeviceOrientationNotifier>();
        DontDestroyOnLoad(gameObject);
    }
 void OnDestroy()
 {
     isAlive = false;
     Self = null;
 }
 void OnDestroy()
 {
     isAlive = false;
     Self    = null;
 }