示例#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
 // Start is called before the first frame update
 void Start()
 {
     coins       = GameObject.Find("coin_manager").GetComponent <coin_control>();
     startHealth = health;
 }