コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     wangLogic = FindObjectOfType <WangLogic>();
 }
コード例 #2
0
    //---------------------- Properties END -------------------

    void Awake()
    {
        image     = GetComponent <Image>();
        text      = GetComponentInChildren <Text>();
        wangLogic = FindObjectOfType <WangLogic>();
    }