Пример #1
0
        private void Start()
        {
            cic = GameObject.FindGameObjectWithTag("CIC").GetComponent <CIC>();

            weaponUI[0].SetActive(true);
            shipWeapon = cic.activeCICWeapon;
        }
Пример #2
0
 private void OnEnable()
 {
     // Input actions setup
     actions = new Actions();
     actions.Enable();
     canShoot = true;
     cic      = GameObject.FindGameObjectWithTag("CIC").GetComponent <CIC>();
     ship     = GameObject.FindGameObjectWithTag("Player").GetComponent <Ship>();
 }
Пример #3
0
        private void Start()
        {
            _cic = GetComponentInChildren <CIC>();

            //#if UNITY_ANDROID
            //            Cursor.visible = true;
            //#else
            //            Cursor.visible = false;
            //#endif
        }