예제 #1
0
    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>();
        }
    }
예제 #2
0
 private void Start()
 {
     LeanTween.moveLocal(UIBuyObject, new Vector3(0, -900, 0), 0);
     organView_Manager = GameManager.gameManager.OrganViewUI;
 }