Example #1
0
    private void Start()
    {
        // PlayerPrefs.DeleteAll();

        string[] ownedCharacters = PlayerPrefsController.GetCharacters();
        costs = FindObjectsOfType <Cost>();

        foreach (Cost cost in costs)
        {
            cost.HidePointCost(ownedCharacters);
        }

        globalManager      = FindObjectOfType <GlobalManager>();
        modalPanel         = FindObjectOfType <ModalPanel>();
        player             = GameObject.FindGameObjectWithTag(Player);
        characterSelection = GameObject.FindGameObjectWithTag(CharacterSelection);
        informationPanel   = GameObject.FindGameObjectWithTag(InformationPanel);
        points             = FindObjectOfType <Points>();

        SetCharacterOnStart(PlayerPrefsController.GetCharacter());
    }