Exemplo n.º 1
0
    public override void SelectCard()
    {
        GameObject.FindObjectOfType <AudioManager>().Play("ButtonClick");

        GameObject.FindObjectOfType <ConfigController>().SetSelectedHouse(house);

        SelectionBarController selectionBar = GameObject.FindObjectOfType <SelectionBarController>();

        selectionBar.SetCardIntoBar(ConfigController.CardType.HOUSE, Resources.Load <Sprite>(house.imagePath), house.houseName);
    }
Exemplo n.º 2
0
    public override void SelectCard()
    {
        GameObject.FindObjectOfType <AudioManager>().Play("ButtonClick");

        GameObject.FindObjectOfType <ConfigController>().SetSelectedPersona(persona);

        SelectionBarController selectionBar = GameObject.FindObjectOfType <SelectionBarController>();

        selectionBar.SetCardIntoBar(ConfigController.CardType.PERSONA, Resources.Load <Sprite>(persona.mugshotPath), persona.getFullName());
    }
    public override void SelectCard()
    {
        GameObject.FindObjectOfType <AudioManager>().Play("ButtonClick");

        GameObject.FindObjectOfType <ConfigController>().SetSelectedScenario(scenario);

        SelectionBarController selectionBar = GameObject.FindObjectOfType <SelectionBarController>();

        selectionBar.SetCardIntoBar(ConfigController.CardType.SCENARIO, Resources.Load <Sprite>(scenario.imagePath), scenario.title);
    }