コード例 #1
0
    void Initialize()
    {
        pet = GameObject.Find("Pet");
        pet.transform.localPosition = new Vector3(0f, 0.26f, 4f);
        pet.transform.localScale = new Vector3(0.4f, 0.4f, 1.0f);
        pet.SetActive(true);

        fontSize = (int)(Screen.width / 20f);
        CreateBackground();
        CreateDecideButton();
        saveDataManager = GameObject.Find("/SaveDataManager");
        saveDataManagerScript = saveDataManager.GetComponent<SaveDataManager>();
        saveDataManagerScript.SetAbstractPetScript();
        saveDataManagerScript.InputSaveData();
        whiteOutManager = GameObject.Find("/WhiteOutManager");
        whiteOutManagerScript = whiteOutManager.GetComponent<WhiteOutManager>();
        InitializeInputField();
    }