// Update is called once per frame void Update() { if (gameScore == null) { gameScore = game.GetComponent <GameValues>(); } }
// 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); }
// 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>(); }
// Start is called before the first frame update void Start() { gameScore = game.GetComponent <GameValues>(); }