예제 #1
0
    // 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;
    }
예제 #2
0
 //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
 }
예제 #3
0
 // 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
 }