コード例 #1
0
    // Start is called before the first frame update
    void Start()
    {
        //return;
        Time.timeScale = 1f;
        DB             = gameObject.GetComponent <DatabaseController>().LoadDB();
        CanvasObj      = GameObject.Find("Canvas");

        NearInteractablePrompt = GameObject.Find("Canvas/PROMPT");

        ShopMenu = GameObject.Find("Canvas/SHOPMENU");
        ShopMenu.SetActive(false);

        GG = GameObject.Find("GroundGenerator").GetComponent <GroundGenerator>();
        GG.NewMap();

        Player = GameObject.Find("Player");
        Shop   = GameObject.FindObjectOfType <ShopBehaviour>().gameObject;
        Shop.GetComponent <ShopBehaviour>().ShuffleStock();

        Clock = GameObject.Find("Canvas/CLOCK");

        HelpMenu = GameObject.Find("Canvas/HELPMENU");
        HelpMenu.SetActive(false);

        PauseMenu = GameObject.Find("Canvas/PAUSEMENU");
        PauseMenu.SetActive(false);
    }