Ejemplo n.º 1
0
    public void action()
    {
        game_session = Object.FindObjectOfType <GameSession>();
        int size_card = game_session.Face_card_deck.Count;

        path_i_card       = Application.dataPath + "/StreamingAssets/Deck of Face Cards/" + game_session.Face_card_deck[Random.RandomRange(0, size_card)];
        path_my_body_card = Application.dataPath + "/StreamingAssets/Deck of Face Cards/" + game_session.Face_card_deck[Random.RandomRange(0, size_card)];

        i_card       = sprite_creater.create(path_i_card);
        my_body_card = sprite_creater.create(path_my_body_card);

        CenterandMyBodyContainer.show_container(i_card, my_body_card);
    }
Ejemplo n.º 2
0
 private void Awake()
 {
     container_obj = this;
 }