Пример #1
0
        private void LeftClick(RaycastHit hit)
        {
            GameObject colliderGameObject = hit.collider.gameObject;
            Transform  colliderTransform  = hit.collider.transform;

            if (colliderGameObject.layer == LayerConstants.Dial)
            {
                Dial _dial = colliderTransform.GetComponent <Dial>();
                if (_dial != null)
                {
                    StartCoroutine(_dial.DialUp());
                }
            }
        }