void Start() { if (Instance != null) { Destroy(gameObject); } else { Instance = this; } InteractionButton = GetComponentInChildren <InteractoinButton>(); LookButton = GetComponentInChildren <LookButton>(); EmergensAnimation = GetComponent <Animation>(); EmergensAnimation.Play(); FexedPosition(); }
private void Start() { _menu = GetComponentInParent <RectMenu>(); }