Example #1
0
 void Start()
 {
     speedControllor = Conrtollor.GetComponent <SpeedControllor>();
     pointCount      = Conrtollor.GetComponent <PointCount>();
     speed           = speedControllor.getSpeed();
     Destroy(gameObject, 10f);
 }
Example #2
0
 void Start()
 {
     speedControllor = Conrtollor.GetComponent <SpeedControllor>();
     speed           = (-1) * speedControllor.getSpeed();
     Destroy(gameObject, 7);
 }