示例#1
0
        private void OnLineTouched()
        {
            this.SafeStopCoroutine(_rotationCoroutine);
            this.SafeStopCoroutine(_scaleChangeCoroutine);

            LineTouched.SafeInvoke();
        }
示例#2
0
        private void OnTriggerEnter(Collider otherCollider)
        {
            var line = otherCollider.GetComponent <Line>();

            if (line != null)
            {
                LineTouched.SafeInvoke();
            }
        }
示例#3
0
 private void OnPathLineTouched()
 {
     Dispose();
     AddForceToPieces();
     LineTouched.SafeInvoke();
 }