예제 #1
0
    // Start is called before the first frame update
    void Start()
    {
        MechHUD                = transform.Find("MechHUD").gameObject;
        SwitcherHUD            = transform.Find("SwitcherHUD").gameObject;
        NavHUD                 = transform.Find("NavHUD").gameObject;
        MenuHUD                = transform.Find("MenuHUD").gameObject;
        ScoreHUD               = transform.Find("ScoreHUD").gameObject;
        GunHUD                 = transform.Find("GunHUD").gameObject;
        slotHighlightTransform = SwitcherHUD.transform.GetChild(0).GetComponent <RectTransform>();

        slotImages   = new List <GameObject>();
        slotPos      = slotHighlightTransform.anchoredPosition;
        slotPosDelta = new Vector3(80, 0, 0);

        MechHUD.SetActive(false);
        SwitcherHUD.SetActive(true);
        NavHUD.SetActive(false);
        MenuHUD.SetActive(false);
        GunHUD.SetActive(false);
        ScoreboardUI(false);

        self.SetActive(false);
    }
예제 #2
0
 public void DisableDynamicUI()
 {
     MechHUD.SetActive(false);
     NavHUD.SetActive(false);
     GunHUD.SetActive(false);
 }
예제 #3
0
 public void WeaponUI()
 {
     MechHUD.SetActive(true);
     NavHUD.SetActive(false);
     GunHUD.SetActive(true);
 }