예제 #1
0
        // Use this for initialization
        private void Start()
        {
            var hudGameObject = GameObject.Find("HudCamera");

            if (hudGameObject != null)
            {
                _hud          = hudGameObject.GetComponent <Hud>();
                _hud.OnSpawn += OnSpawn;
            }

            _Db        = GetComponent <Google2u.SampleCharacters>();
            _DialogMap = GetComponent <Google2u.SampleDialogMap>();
            _Weapons   = GetComponent <Google2u.SampleWeapons>();
        }
예제 #2
0
        // Use this for initialization
        private void Start()
        {

            var hudGameObject = GameObject.Find("HudCamera");
            if (hudGameObject != null)
            {
                _hud = hudGameObject.GetComponent<Hud>();
                _hud.OnSpawn += OnSpawn;
            }

            _Db = GetComponent<Google2u.SampleCharacters>();
            _DialogMap = GetComponent<Google2u.SampleDialogMap>();
            _Weapons = GetComponent<Google2u.SampleWeapons>();

        }