// Use this for initialization
 void Start()
 {
     startParent      = GetComponentInChildren <IInstallStart>();
     endParent        = GetComponentInChildren <IInstallEnd>();
     intallController = new InstallController(startParent, endParent);
     RegisterActionCommand();
 }
Example #2
0
        public InstallController(IInstallStart startParent, IInstallEnd endParent)
        {
            this.startParent = startParent;
            this.endParent   = endParent;

            elementLayer        = (int)Mathf.Pow(2, 8);
            elementInstallLayer = (int)Mathf.Pow(2, 9);
        }