Exemplo n.º 1
0
 public static Vector3 GetAccSensor()
 {
     if (Application.isEditor)
     {
         var gyro = DebugGyroInterface.GetPositionNormalize();
         return(gyro);
     }
     else
     {
         return(new Vector3(
                    Input.acceleration.x,
                    Input.acceleration.y,
                    0
                    ));
     }
 }
Exemplo n.º 2
0
    void Awake()
    {
        if (!Application.isEditor)
        {
            panelTransform.gameObject.SetActive(false);
        }

        if (myInterface)
        {
            Destroy(gameObject);
        }
        else
        {
            myInterface = this;
            //DontDestroyOnLoad(gameObject);
        }
    }