Esempio n. 1
0
 private bool IsInDestroyArea(View target, DestroyAreaType type)
 {
     if (type != DestroyAreaType.Top)
     {
         return(type == DestroyAreaType.Botton && target.get_transform().get_localPosition().y < this.mVector3BottomDestroyLine.y);
     }
     return(this.mVector3TopDestroyLine.y <= target.get_transform().get_localPosition().y);
 }
        private bool IsInDestroyArea(View target, DestroyAreaType type)
        {
            switch (type)
            {
            case DestroyAreaType.Top:
            {
                float   y = mVector3TopDestroyLine.y;
                Vector3 localPosition2 = target.transform.localPosition;
                return(y <= localPosition2.y);
            }

            case DestroyAreaType.Botton:
            {
                Vector3 localPosition = target.transform.localPosition;
                return(localPosition.y < mVector3BottomDestroyLine.y);
            }

            default:
                return(false);
            }
        }