Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     Listener        = bvr_Listener.Get;
     _centerPosition = new Vector2(Screen.width / 2, Screen.height / 2);
     Subscribe();
     foreach (var obj in Pyramids)
     {
         obj.Rotate(new Vector3(0, 1, 0), 100);
     }
     DirLight1.Rotate(new Vector3(0, 1, 0), 5);
     Anim1.PlayAnimation();
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        Listener = bvr_Listener.Get;
        if (rgcontrol == null)
        {
            rgcontrol = gameObject.GetComponent <RigidbodyFirstPersonController>();
        }

        if (Listener.IsConnected())
        {
            rgcontrol.enabled = false;
        }
        Subscribe();
        var oldRotation = gameObject.transform.rotation;
    }