Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     apm          = GameObject.FindObjectOfType <ActionPointManager>();
     selectedCard = "";
     CardSelected = false;
     cardCount    = 0;
     GetHandCardSlots();
 }
Beispiel #2
0
 void Start()
 {
     child       = transform.gameObject;
     market      = FindObjectOfType <Market>();
     activeHand  = GameObject.FindGameObjectWithTag("Hand_Active").GetComponent <Hand>();
     passiveHand = GameObject.FindGameObjectWithTag("Hand_Passive").GetComponent <PassiveCardHandler>();
     apm         = GameObject.FindObjectOfType <ActionPointManager>();
 }
Beispiel #3
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(instance);
        }

        DontDestroyOnLoad(instance);
    }
Beispiel #4
0
    // Use this for initialization
    void Start()
    {
        marketCards = GameObject.FindObjectOfType <Market>().cards;

        //finds the active in slot 1 of the game objects
        activeHand = GameObject.FindObjectsOfType <Hand>()[1];
        tileImage  = GetComponent <Image>();
        foreach (GameObject card in marketCards)
        {
            possibleActiveImages.Add(card.GetComponent <Image>());
        }

        apm = GameObject.FindObjectOfType <ActionPointManager>();
        ach = GameObject.FindObjectOfType <ActiveCardHandler>();

        CanHighlight = false;
    }