示例#1
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.tag == "Wire")
        {
            onWires = true;
        }

        if (other.tag == "Coin")
        {
            saveManager.AddCoins(1);
        }
    }