Exemplo n.º 1
0
    private void getDependencies()
    {
        Transform parent = transform.parent;

        switchablesInstaller      = parent.GetComponentInChildren <ISwitchablesInstaller>();
        detectorsInstaller        = parent.GetComponentInChildren <IDetectorsInstaller>();
        switchDetectableInstaller = parent.GetComponentInChildren <ISwitchDetectableInstaller>();
        switchables      = parent.GetComponentsInChildren <IDayNightSwitchable>();
        dayDetectors     = parent.GetComponentsInChildren <IDayDetector>();
        nightDetectors   = parent.GetComponentsInChildren <INightDetector>();
        switchDetectable = parent.GetComponentInChildren <ISwitchDetectable>();
    }
Exemplo n.º 2
0
 public void SetSwitchDetectable(ISwitchDetectable switchDetectable)
 {
     this.switchDetectable = switchDetectable;
 }