Beispiel #1
0
    public override void Start()
    {
        base.Start();
        string name = string.Format("{0} #{1}", Connector.KMBombModule.ModuleDisplayName, Connector.ModuleID);

        Connector.KMBombModule.OnActivate += () => { Connector.Activate(); _activated = true; };
        Connector.ButtonPressed           += Connector_ButtonPressed;
        Connector.ButtonsSunk             += Connector_ButtonsSunk;

        _translation = GetComponent <TranslatedWhosOnFirst>();
        _translation.GenerateLanguage(name);

        Connector.Stage = 0;

        if (_translation.Language.ScreenDisplayMethod == LanguageWhosOnFirst.DisplayMethods.CustomTextMesh)
        {
            Connector.UseCustomDisplay(_translation.Language.DisplayFontSize, _translation.Language.DisplayOffset);
        }
        if (_translation.Language.ButtonsDisplayMethod == LanguageWhosOnFirst.DisplayMethods.CustomTextMesh)
        {
            Connector.UseCustomButtonLabels(_translation.Language.ButtonsFontSize, _translation.Language.ButtonsOffset);
        }

        // todo: verify that this only happens after the lights ocme on and the display isn't visible before then when using a custom text mesh.
        //StartCoroutine(CycleLabels());
        NewStage();
    }