예제 #1
0
        internal void Start()
        {
            Detector             = gameObject.AddComponent <ProximityDetector>();
            Detector.other       = HandsController.Behaviour.RightHand;
            Detector.minDistance = 0.2f;
            _renderers           = gameObject.GetComponentsInChildren <MeshRenderer>();
            transform.localScale = Vector3.one * scale;

            GlobalMessenger.AddListener("SuitUp", Unequip);
            GlobalMessenger.AddListener("RemoveSuit", Unequip);
        }
예제 #2
0
 void Awake()
 {
     detector             = gameObject.AddComponent <ProximityDetector>();
     detector.other       = Hands.RightHand;
     detector.minDistance = 0.2f;
 }