コード例 #1
0
    void Start()
    {
        whitePieces = 16;
        blackPieces = 16;

        tc = GetComponent <turnController>();

        source = GetComponent <AudioSource>();
    }
コード例 #2
0
    void Start()
    {
        wPieces = GameObject.FindGameObjectsWithTag("White");
        bPieces = GameObject.FindGameObjectsWithTag("Black");
        button  = transform.GetChild(4).gameObject;

        tc = GameObject.FindGameObjectWithTag("GameController").GetComponent <turnController>();
        cc = GameObject.FindGameObjectWithTag("GameController").GetComponent <clashController>();
    }