コード例 #1
0
ファイル: DisplayController.cs プロジェクト: smpik/MedalGame2
    // 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();        //最初は非表示
    }