Esempio n. 1
0
 // Update is called once per frame
 void Update()
 {
     if (gameScore == null)
     {
         gameScore = game.GetComponent <GameValues>();
     }
 }
Esempio n. 2
0
        // Start is called before the first frame update
        void Start()
        {
            gameValue = gameRef.GetComponent <GameValues>();

            defaultTrans = transform;
            maxQuart     = Quaternion.Euler(-6.5f, 0, maxTilt);
            minQuart     = Quaternion.Euler(-6.5f, 0, minTilt);
            defQuart     = Quaternion.Euler(-6.5f, 0, 0);
        }
Esempio n. 3
0
        // Start is called before the first frame update
        void Start()
        {
            body             = GetComponent <Rigidbody>();
            startingPosition = transform.position;
            Vector3 startMove = transform.position + startingOffset;

            transform.position = startMove;
            gameValue          = gameRef.GetComponent <GameValues>();
        }
Esempio n. 4
0
 // Start is called before the first frame update
 void Start()
 {
     gameScore = game.GetComponent <GameValues>();
 }