private GameObject GetHazard(mg_bc_EHazardType _type) { mg_BeanCounter active = MinigameManager.GetActive <mg_BeanCounter>(); GameObject instancedResource = active.Resources.GetInstancedResource(mg_bc_EResourceList.GAME_ASSET_HAZARD); mg_bc_Hazard component = instancedResource.GetComponent <mg_bc_Hazard>(); component.SetType(_type); return(instancedResource); }
internal void SetType(mg_bc_EHazardType _type) { HazardType = _type; m_animator.SetInteger("hazard_type", (int)_type); }