// Use this for initialization void Start() { startParent = GetComponentInChildren <IInstallStart>(); endParent = GetComponentInChildren <IInstallEnd>(); intallController = new InstallController(startParent, endParent); RegisterActionCommand(); }
public InstallCommand(string stapName, IInstallCtrl installCtrl, IList <InstallPos> installers) : base(stapName) { this.installers = installers; this.installCtrl = installCtrl; this.StapName = stapName; for (int i = 0; i < installers.Count; i++) { installers[i].installCtrl = installCtrl; } }