private void Start() { GameObject DBRefObject = GameObject.FindWithTag("DBRef"); if (DBRefObject != null) { DBRef = DBRefObject.GetComponent <DBcurScoreCom>(); } }
// 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); }
// 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; }
//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; }