public void action() { game_session = Object.FindObjectOfType <GameSession>(); int size_card = game_session.Situations_card_deck.Count; int size_limitations = game_session.Limitations.Count; path_limitation_card = Application.dataPath + "/StreamingAssets/Deck of Situations Cards/" + game_session.Situations_card_deck[Random.RandomRange(0, size_card)]; limitation = game_session.Limitations[Random.RandomRange(0, size_limitations)]; situation_card = sprite_creater.create(path_limitation_card); LimitContainer.show_container(situation_card, limitation); }
private void Awake() { container_obj = this; }