void OnTriggerExit(Collider other) { CoinController cc = other.gameObject.GetComponent <CoinController>(); if (null != cc && false == cc.IsAttached()) { cc.Attach(++coinsAttached); } }
void OnTriggerExit(Collider other) { CoinController cc = other.gameObject.GetComponent <CoinController>(); if (null != cc && false == cc.IsAttached()) { cc.Attach(++coinsAttached); } }