public virtual void Initialize() { uiManager = GetComponentInParent <TownGuiManager>(); raycaster = Camera.main.gameObject.GetComponent <CameraRaycaster>(); rect = GetComponent <RectTransform>(); startX = rect.localPosition.x; }
void Awake() { raycaster = Camera.main.GetComponent <CameraRaycaster>(); }
private void Awake() { raycaster = Camera.main.gameObject.GetComponent <CameraRaycaster>(); }