コード例 #1
0
    void Start()
    {
        GameObject gameManager = GameObject.FindGameObjectWithTag("GameManager");
        GameObject cardManager = GameObject.FindGameObjectWithTag("CardManager");

        loader = cardManager.GetComponent <UI_CardLoader> ();
        hud    = gameManager.GetComponent <UI_MeterManager> ();
        panel  = GetComponentInParent <UI_CardPanel> ();
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     panel = infoPanel.GetComponent <UI_CardPanel> ();
 }