Exemple #1
0
 //public GameObject rightHand;
 //SteamVR_LaserPointer laserScript;
 // Start is called before the first frame update
 void Start()
 {
     PlayerPrefs.SetInt("balance", balance);
     balanceText = balanceTextObj.GetComponent <Text>();
     ts          = GetComponent <targetScript>();
     bs          = GetComponent <basketballScore>();
     //laserScript = rightHand.GetComponent<SteamVR_LaserPointer>();
 }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     oldPos        = transform.position;
     scoreScript   = gameController.GetComponent <basketballScore>();
     bs            = bkbCountDownObj.GetComponent <bkbCountDown>();
     bkbScoreSound = GameObject.Find("bkbScoreAudio").GetComponent <AudioSource>();
     bscript       = GameObject.Find("GameController").GetComponent <balanceScript>();
 }
Exemple #3
0
 // Start is called before the first frame update
 void Start()
 {
     timeText     = GetComponent <Text>();
     bs           = gameController.GetComponent <basketballScore>();
     barAnimator  = barAnimatorObj.GetComponent <Animator>();
     gameBkbOver  = true;
     ms           = pole.GetComponent <moveLeftRight>();
     ms.amplitude = 0;
 }