Пример #1
0
 // Use this for initialization
 void Start()
 {
     //Opening port to arduino
     Open();
     //initializing ball mass
     bts = gameObject.GetComponent <BallTriggeringScript>();
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     bts = ball.GetComponent <BallTriggeringScript>();
     rb  = ball.GetComponent <Rigidbody>();
     ab  = ball.GetComponent <ArduinoBridge>();
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     rend = GetComponent <Renderer>();
     rb   = GetComponent <Rigidbody>();
     btss = GetComponent <BallTriggeringScript>();
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     btsTrigger = ball.GetComponent <BallTriggeringScript>();
     delete     = btsTrigger.entered;
 }