// Use this for initialization
    void Start()
    {
        GameObject.Find("Player").GetComponent <Player> ().OnActorGainedLevel += SetUpMenu;

        PerkCatalogue = GameObject.Find("Perk Catalogue").GetComponent <PerkCatalogueScript>();

        DisplayHelper = new Dictionary <Button, Perk> ();
        ChoiceHelper  = new Dictionary <Button, int> ();

        for (int i = 0; i < 5; i++)
        {
            ChoiceHelper.Add(Buttons [i], i);
        }

        gameObject.SetActive(false);
    }
Example #2
0
    void Start()
    {
        PerksActive    = new List <Perk> ();
        PerksCatalogue = GameObject.Find("Perk Catalogue").GetComponent <PerkCatalogueScript>();

        Initialize();
        ActionCreator = ActionCreatorToPass;

        Type = ActorType.Player;

        OnBeingHit  += GetFucked;
        OnActorDied += PlayerDeath;

        OnActorGainedLevel += Player_OnActorGainedLevel;

        KeyBindingsWrapper.Mouse.OnMouseDown += MouseClickTest;

        StartCoroutine("WatchForDeath");
        StartCoroutine("CheckExperience");
    }