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>(); } }
public void customStart() { myGameManager = GameManager.gameManager; if (myGameManager != null) { pointsManager = myGameManager.pointsManager; } transitionImage = TransitionObject.GetComponent <Image>(); SetTransitionImage(); }