-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGameManager.cs
36 lines (26 loc) · 938 Bytes
/
GameManager.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameManager : MonoBehaviour
{
public static List<Card> chosenEnvCards = new List<Card>();
public static List<ItemCard> chosenItemsCards = new List<ItemCard>();
// Start is called before the first frame update
void Start()
{
// Debug.Log();
}
// Update is called once per frame
void Update()
{
// Debug.Log("HDJS");
// chosenItemsCards = GameObject.Find("Deck").GetComponent<CardDeck>().chosenItemsCards;
// Debug.Log(chosenItemsCards.Count);
}
public void StartGame(){
SceneManager.LoadScene("SampleScene");
chosenItemsCards = GameObject.Find("Deck").GetComponent<CardDeck>().chosenItemsCards;
chosenEnvCards = GameObject.Find("Deck").GetComponent<CardDeck>().chosenEnvCards;
}
}