// Use this for initialization void Start() { offsetObject = FindObjectOfType <StarfieldMover>(); }
void Awake() { m_StartFieldMover = FindObjectOfType <StarfieldMover>(); m_LastStarfieldPosY = m_StartFieldMover.transform.position.y; }