コード例 #1
0
    // Start is called before the first frame update
    void Start()
    {
        mesh  = GetComponent <MeshRenderer>();
        coins = GameObject.Find("coin_manager").GetComponent <coin_control>();

        mesh.enabled = false;
    }
コード例 #2
0
ファイル: enemy_control.cs プロジェクト: oars44/TowerDefense
 // Start is called before the first frame update
 void Start()
 {
     coins       = GameObject.Find("coin_manager").GetComponent <coin_control>();
     startHealth = health;
 }