// Use this for initialization
 void Start()
 {
     otObject = GetComponent <OTObject>();
     otObject.BoundBy(GameObject.Find("Boundary").GetComponent <OTObject>());
     OT.Persist(otObject);
 }
Exemple #2
0
	// Use this for initialization
	void Start () {
		otObject = GetComponent<OTObject>();		
		otObject.BoundBy(GameObject.Find("Boundary").GetComponent<OTObject>());
		OT.Persist(otObject);
	}
 void OnLevelWasLoaded(int level)
 {
     otObject.BoundBy(GameObject.Find("Boundary").GetComponent <OTObject>());
 }