// Start is called before the first frame update
    void Start()
    {
        CreditValueText = GameObject.Find("CreditValueText").GetComponent <Text>();
        PayoutValueText = GameObject.Find("PayoutValueText").GetComponent <Text>();
        GameOverCanvas  = GameObject.Find("GameOverCanvas");
        ContinueButton  = GameObject.Find("ContinueButton");
        Banner1         = GameObject.Find("Banner1");

        CreditManagerInstance      = GameObject.Find("Main Camera").GetComponent <CreditManager>();
        PayoutManagerInstance      = GameObject.Find("Main Camera").GetComponent <PayoutManager>();
        AdBannerControllerInstance = GameObject.Find("Banner1").GetComponent <AdBannerController>();

        CreditManagerInstance.InitCreditText();
        PayoutManagerInstance.InitPayoutText();

        InactivateGameOverCanvas();        //最初は非表示
    }
Exemple #2
0
    // Start is called before the first frame update
    void Start()
    {
        AdBannerControllerInstance = GameObject.Find("Banner1").GetComponent <AdBannerController>();

        PayoutManagerInstance = GameObject.Find("Main Camera").GetComponent <PayoutManager>();
    }