コード例 #1
0
 // Use this for initialization
 void Start()
 {
     apm          = GameObject.FindObjectOfType <ActionPointManager>();
     selectedCard = "";
     CardSelected = false;
     cardCount    = 0;
     GetHandCardSlots();
 }
コード例 #2
0
ファイル: BuyCard.cs プロジェクト: 7aylor/Unity
 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>();
 }
コード例 #3
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(instance);
        }

        DontDestroyOnLoad(instance);
    }
コード例 #4
0
ファイル: PlayspaceTile.cs プロジェクト: 7aylor/Unity
    // 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;
    }