public static void Create(PowerPotModel model, Action<PowerPotController> callback) { var prefab = Resources.Load("") as GameObject; var go = Instantiate(prefab, null); var res = go.GetComponent<PowerPotController>(); res.Setup(model); callback(res); }
public void Setup(PowerPotModel model) { _model = model; }