Example #1
0
    void Start()
    {
        if (Instance != null)
        {
            Destroy(gameObject);
        }
        else
        {
            Instance = this;
        }

        InteractionButton = GetComponentInChildren <InteractoinButton>();
        LookButton        = GetComponentInChildren <LookButton>();
        EmergensAnimation = GetComponent <Animation>();
        EmergensAnimation.Play();
        FexedPosition();
    }
Example #2
0
 private void Start()
 {
     _menu = GetComponentInParent <RectMenu>();
 }