Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        vr = new VRConnect();
        vr.OnBindSuccess += OnBindSuccess;
        vr.OnControl     += OnControl;
        vr.OnShoot       += OnShoot;
        vr.OnControlType += OnControlType;
        vr.Connect();

        text.text = vr.uid.ToString();
    }
Beispiel #2
0
        // Use this for initialization
        void Start()
        {
            vrConnect     = VRConnect.Instance;
            playerManager = PlayerManager.Instance;

            vrConnect.OnShoot       += OnShoot_proxy;
            vrConnect.OnGameStart   += OnGameStart_proxy;
            vrConnect.OnGameEnd     += OnGameEnd_proxy;
            vrConnect.OnGameCount   += OnGameCount_proxy;
            vrConnect.OnAttacked    += OnAttacked_proxy;
            vrConnect.OnControl     += OnControl_proxy;
            vrConnect.OnDeath       += OnDeath_proxy;
            vrConnect.OnControlType += OnControlType_proxy;
            vrConnect.OnSoldOut     += OnSoldOut_proxy;

            StartCoroutine("ReportCurrentPosition");
        }