Beispiel #1
0
        protected override void Start()
        {
            base.Start();

            var o = GameObject.FindWithTag("Player");

            if (o != null)
            {
                _player_pawn = o.GetComponent <base_ctrl>();
            }
            if (_player_pawn != null)
            {
                _player_pawn.input_control = this;
            }
        }
Beispiel #2
0
        void Awake()
        {
            foreach (var o in Object.FindObjectsOfType <base_ctrl>())
            {
                if (o.gameObject.tag == "Player")
                {
                    _pawn = o;
                    break;
                }
            }

            _item = Object.FindObjectsOfType <als_item>();
            System.Array.Sort(_item);

            _toggle = UI_toggle_panel.GetComponentsInChildren <use_item_UI_toggle>();
            System.Array.Sort(_toggle);

            _charge_remain_text = charge_remain_panel.GetComponentInChildren <Text>();
        }
Beispiel #3
0
 public virtual void set_active_pawn(base_ctrl pawn)
 {
     _pawn = pawn;
 }