Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     rb = GetComponent <Rigidbody>();
     po = GetComponent <PauseObject>();
     po.init(pauseBall, unpauseBall);
     resetPosition();
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     tm       = GetComponent <TextMesh>();
     po       = GetComponent <PauseObject>();
     tm.color = new Color(0.0f, 0.0f, 0.0f, 0.0f);
     po.init(onPause, onUnpause);
 }