示例#1
0
    void Start()
    {
        TowerBehavior.UnitsMoved       += TowerBehavior_UnitsMoved;
        LevelController.LevelEnd       += OnLevelEnd;
        Preferences.PreferencesChanged += UpdatePreferences;
        // For updating the UI during gameplay.
        ConvergenceController.ConvergenceOccurred += UpdateConvergenceCountText;
        // The initial UI update which is set in after the convergence controller is created on leve start.
        LevelController.LevelStart += UpdateConvergenceCountText;
        LevelController.LevelStart += DisableConvergenceUI;
        defaultResponder            = new UIPointerResponder();
        defaultResponder.Controller = this;
        currentResponder            = defaultResponder;

        UpdatePreferences();
        UpdateConvergenceCountText();
    }
示例#2
0
 public ExplosionQuickTimePointerResponder(UIPointerResponder uiResponder = null)
 {
     this.uiResponder = (uiResponder == null) ? new UIPointerResponder() : uiResponder;
     Reset();
 }