void Start()
    {
        //initialise fields
        gameManager = GameObject.FindGameObjectWithTag("GameManager");
        fadeScript  = gameManager.GetComponent <UIFadeScript>();
        touch       = new Touch();

        goals = new string[5];

        dataHolder       = GameObject.FindGameObjectWithTag("DataHolder");
        dataHolderScript = dataHolder.GetComponent <DataHolder>();

        //If new player set bool
        if (System.IO.File.Exists(Application.persistentDataPath + "/playerData.pd"))
        {
            isNewPlayer = false;
            Debug.Log(Application.persistentDataPath);
        }
        else
        {
            isNewPlayer = true;
        }

        isComplete = false;
    }
示例#2
0
    void Awake()
    {
        UIFade = this;

        textObj.SetActive(false);
        WinConditions.SetActive(false);
        Win.SetActive(false);
        LosConditions.SetActive(false);
        Los.SetActive(false);
    }