void GetReferences() { if (pointsManager == null) { pointsManager = FindObjectOfType <NewPointsManager>(); } if (organManager == null) { organManager = FindObjectOfType <OrganManager>(); } if (playerInput == null) { playerInput = FindObjectOfType <PlayerInput>(); } if (CellViewUI == null) { CellViewUI = FindObjectOfType <CellView_UI_Manager>(); } if (topUIManager == null) { topUIManager = FindObjectOfType <TopUI_Manager>(); } if (OrganViewUI == null) { OrganViewUI = FindObjectOfType <OrganView_Manager>(); } }
private void Start() { LeanTween.moveLocal(UIBuyObject, new Vector3(0, -900, 0), 0); organView_Manager = GameManager.gameManager.OrganViewUI; }