// 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>(); }
// 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>(); }