예제 #1
0
    void OnTriggerExit(Collider other)
    {
        CoinController cc = other.gameObject.GetComponent <CoinController>();

        if (null != cc &&
            false == cc.IsAttached())
        {
            cc.Attach(++coinsAttached);
        }
    }