コード例 #1
0
    private void Start()
    {
        GameObject DBRefObject = GameObject.FindWithTag("DBRef");

        if (DBRefObject != null)
        {
            DBRef = DBRefObject.GetComponent <DBcurScoreCom>();
        }
    }
コード例 #2
0
ファイル: Keyboard.cs プロジェクト: sondreoanas/vr_bachelor
    // Use this for initialization
    void Start()
    {
        GameObject DBRefObject = GameObject.FindWithTag("DBRef");

        if (DBRefObject != null)
        {
            DBRef = DBRefObject.GetComponent <DBcurScoreCom>();
        }
        textObject     = GameObject.FindGameObjectWithTag("NameOfPlayer");
        keyBoardObject = GameObject.FindGameObjectWithTag("Keyboard");
        //playerInformation = GameObject.FindGameObjectWithTag("Navn_informasjon_tid");
        startButtonObject = GameObject.FindGameObjectWithTag("StartButton");
        startButtonObject.SetActive(false);
    }
コード例 #3
0
    // Use this for initialization
    void Start()
    {
        GameObject DBRefObject = GameObject.FindWithTag("DBRef");

        if (DBRefObject != null)
        {
            DBRef = DBRefObject.GetComponent <DBcurScoreCom>();
        }
        stopwatch = new Stopwatch();
        stopwatch.Start();
        rigidbodyOfBoard     = gameObject.GetComponent <Rigidbody>();
        freezePostionOfBoard = true;
        boxes = GameObject.FindGameObjectsWithTag("box");
        totalNumberOfBoxes = boxes.Length;
    }
コード例 #4
0
    //Starter klokker og databasereferanse
    void Start()
    {
        GlobalVariables.level++;
        GameObject DBRefObject = GameObject.FindWithTag("DBRef");

        if (DBRefObject != null)
        {
            DBRef = DBRefObject.GetComponent <DBcurScoreCom>();
        }
        // ***
        //boxSound = GetComponent<AudioSource>();
        timer     = new Stopwatch();
        moveTimer = new Stopwatch();
        timer.Start();
        startPos = transform.position;
    }