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); }
void Awake() { detector = gameObject.AddComponent <ProximityDetector>(); detector.other = Hands.RightHand; detector.minDistance = 0.2f; }