private void Start()
 {
     miningScript = miningGame.GetComponent <MiningGameScript>();
 }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     mgs = transform.parent.GetComponent <MiningGameScript>();
 }