Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     hand            = GetComponent <VRInput>();
     rigidbodyHand   = GetComponent <Rigidbody>();
     skateController = FindObjectOfType <SkateController>();
     velocimeter     = FindObjectOfType <Velocimeter>();
 }
Ejemplo n.º 2
0
 void Start()
 {
     if (nbObstaclesTotal <= 0)
     {
         return;
     }
     pc = player.GetComponent <SkateController>();
     InitObstaclesStack();
     distByObsAvg    = distanceToTravel / nbObstaclesTotal;
     distBetweenWasp = distanceToTravel / (nbWaspTotal + 1);
     distNextWasp    = distBetweenWasp * (nbWasp + 1);
     Invoke("Spawn", 1f);
 }
 // Use this for initialization
 void Start()
 {
     controller = skateboard.GetComponent<SkateController>();
 }