Esempio n. 1
0
 void Start()
 {
     t = GetComponent <Transform>();
     w = GetComponent <WrapAround>();
     r = GetComponent <SpriteRenderer>();
     Select();
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     WrapAround script = gameObject.GetComponent <WrapAround>();
 }
Esempio n. 3
0
 public void initialize()
 {
     opposite = (WrapAround)oppositeGO.GetComponent("WrapAround");
     translation = oppositeGO.transform.position - transform.position;
     unitTranslation = translation.normalized;
 }