private void Awake() { registerTile = GetComponent <RegisterTile>(); spriteHandler = GetComponentInChildren <SpriteHandler>(); switchController = GetComponent <GeneralSwitchController>(); if (directional != null) { directional.OnDirectionChange.AddListener(OnDirectionChanged); } }
private void AddDoorControllerFromScene(GeneralSwitchController generalSwitchController) { if (generalSwitchControllers.Contains(generalSwitchController)) { generalSwitchControllers.Remove(generalSwitchController); } else { generalSwitchControllers.Add(generalSwitchController); } }
private void Awake() { registerTile = GetComponent <RegisterTile>(); spriteHandler = GetComponentInChildren <SpriteHandler>(); switchController = GetComponent <GeneralSwitchController>(); }