// Use this for initialization void Start() { threeCard = GameManager.Instance.threeCardBurst; holder = ScriptableObject.FindObjectOfType <CardRetrievalFromDeck>(); //gets access to the script playerDraw = ScriptableObject.FindObjectOfType <DebugDealer>(); //gets access to the script cardParent = GameObject.Find("Game Board Container/Player Board/Board/Player/Hand").transform; }
//code that executes on the script load public void Start() { holder = ScriptableObject.FindObjectOfType <CardRetrievalFromDeck>(); //gets access to the script playerDraw = ScriptableObject.FindObjectOfType <DebugDealer>(); //gets access to the script }
// Use this for initialization void Start() { showBoard = GameObject.Find("Main Camera").GetComponent <CheckDeckAndDiscardPlayer>(); //sets object holder = ScriptableObject.FindObjectOfType <CardRetrievalFromDeck>(); //gets access to the script playerDraw = ScriptableObject.FindObjectOfType <DebugDealer>(); //gets access to the script }