void Start() { db = GameObject.Find("Database").GetComponent <game_data_base>(); zombie_manager tmp = GetComponent <zombie_manager>(); ref_zombie = tmp.stats; target = get_target(); }
// Use this for initialization void Start() { db = GameObject.Find("game_data_base").GetComponent <game_data_base>(); l = GetComponent <Light>(); }
private void Awake() { db = GameObject.Find("Database").GetComponent <game_data_base>(); dot = GetComponent <dot_manager>(); }
// Use this for initialization void Start() { g_db = GameObject.Find("Database").GetComponent <game_data_base>(); zombie_list = g_db.zombie_list; get_time_spawn = g_db.get_time_spawn_zombie; }