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