Exemplo n.º 1
0
    private void Start()
    {
        GameObject DBRefObject = GameObject.FindWithTag("DBRef");

        if (DBRefObject != null)
        {
            DBRef = DBRefObject.GetComponent <DBcurScoreCom>();
        }
    }
Exemplo n.º 2
0
    // 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);
    }
Exemplo n.º 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;
    }
Exemplo n.º 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;
    }