예제 #1
0
    public void Say(string text, Character character, float time = 5, float delay = 0)
    {
        if (delay > 0)
        {
            DelayManager.CallTo(delegate()
            {
                Say(text, character, time, 0);
            }, delay);
            return;
        }

        MoveCamera(character);

        ChoisirBulle(text);

        Vector3 position = new Vector3((character.transform.position.x + currentOffsetX), currentBulle.transform.position.y, (character.transform.position.z + currentOffsetZ));

        Bubble myBubble = Instantiate(currentBulle, position, currentBulle.transform.rotation);

        myBubble.gameObject.SetActive(true);
        myBubble.myText.GetComponent <TextMesh>().text = text;
        myBubble.SetValues(currentOffsetX, currentOffsetZ, character, time);

        myBubble.Init();
    }
예제 #2
0
 // Use this for initialization
 private void Start()
 {
     if (_delayManager == null)
     {
         _delayManager = GetComponent <DelayManager>();
     }
     if (_inputManager == null)
     {
         _inputManager = GetComponent <IPlatformer2DUserControl>();
     }
     if (_mouvementManager == null)
     {
         _mouvementManager = GetComponent <PlatformerCharacter2D>();
     }
     if (_collider == null)
     {
         Debug.LogError(ColliderString());
     }
     _feedBack = GetComponent <Feedback>();
     if (_feedBack == null)
     {
         Debug.LogError("Gun (Arc or shield) is unable to get the Feedback component on " + gameObject.name);
     }
     //else _feedBack.CanShootFeedbackEvent += MeleeTimerReset;
 }
예제 #3
0
        /// <summary>
        /// Метод, привязывающий параметры эффекта дилэй плагина к редактору.
        /// </summary>
        private void BindDelay(DelayManager delay)
        {
            var color = (Brush)Resources["delayKnobColor"];

            DelayTime.AttachTo(delay.TimeManager, color,
                               Converters.DelayTimeToString);

            DelayFeedback.AttachTo(delay.FeedbackManager, color,
                                   Converters.PercentsToString);

            DelayMix.AttachTo(delay.MixManager, color,
                              Converters.PercentsToString);

            DelayStereoMode.AttachTo(delay.ModeManager, color,
                                     Converters.DelayModeToString);

            DelayStereoAmount.AttachTo(delay.StereoAmountManager, color,
                                       Converters.StereoAmountToString);

            DelayInvert.AttachTo(delay.InvertManager, color,
                                 Converters.InvertToString);

            DelayLfoDepth.AttachTo(delay.LfoDepthManager, color,
                                   Converters.PercentsToString);

            DelayLfoRate.AttachTo(delay.LfoRateManager, color,
                                  Converters.DelayLfoRateToString);
        }
예제 #4
0
    public void FlushAlivePlayerInputs()
    {
        foreach (GameObject pg in m_Players)
        {
            if (pg != null)
            {
                IPlatformer2DUserControl controls = pg.GetComponent <IPlatformer2DUserControl>();
                if (controls != null)
                {
                    controls.FlushInputs();
                }

                PlatformerCharacter2D charac = pg.GetComponent <PlatformerCharacter2D>();
                if (charac != null)
                {
                    charac.FlushAnimState();
                }

                DelayManager dm = pg.GetComponent <DelayManager>();
                if (dm != null)
                {
                    dm.AddDelay(Database.instance.MenuInputDelay);
                    dm.AddShieldDelay(Database.instance.MenuInputDelay);
                }
            }
        }
    }
예제 #5
0
    public void PlayFeedbackAnimation(int income)
    {
        FeedBackText.enabled = true;
        FeedBackText.GetComponent <Outline>().enabled = true;
        FeedBackText.GetComponent <Outline>().DOFade(1, 0);
        DelayManager.LocalCallTo(delegate
        {
            FeedBackText.enabled = false;
            FeedBackText.GetComponent <Outline>().enabled = false;
        }, 3, this);

        if (income < 0)
        {
            //negatif
            FeedBackText.text = income + "$";
            FeedBackText.DOColor(new Color(0.59f, 0.25f, 0.25f), 0);
        }
        else
        {
            //positif
            FeedBackText.text  = "+" + income + "$";
            FeedBackText.color = new Color(0.42f, 0.59f, 0.26f);
        }

        FeedBackText.transform.position = CashPanel.transform.position + new Vector3(0, -50, 0);
        FeedBackText.transform.DOMoveY(-20, 1).SetRelative();

        FeedBackText.DOFade(0, 3);
        FeedBackText.GetComponent <Outline>().DOFade(0, 3);
    }
예제 #6
0
 void Start()
 {
     DelayManager.CallTo(delegate()
     {
         audio.Play();
     }, delay);
 }
예제 #7
0
 public void LastMinute()
 {
     CreateTransmission("Attention, nous avons reçu de nouvelles informations. Le complot se mettrait en marche dans approximativement 1 heure!", 0);
     DelayManager.CallTo(delegate()
     {
         musicManager.PlayLastMinuteSong();
     }, 1);
 }
예제 #8
0
    void DoTutorial()
    {
        gameObject.SetActive(activateTutorial);

        if (activateTutorial)
        {
            DelayManager.LocalCallTo(delegate()
            {
                inputBlocker.SetActive(true);
                spotlight.gameObject.SetActive(true);
                tutorialMessage.gameObject.SetActive(true);
                Time.timeScale = 0;
                inputBlocker.SetActive(true);
                tutorialMessage.Show(delegate()
                {
                    DelayManager.LocalCallTo(delegate() {
                        tutorialMessage.Hide(delegate()
                        {
                            ShowUI(heroPanel.position, "SECTION HÉRO", "Ceci est le héro que vous avez sélectionné en se moment. Cliquer sur Next pour " +
                                   " sélectionner le prochain que vous possédez ou sélectionnez le directement dans le map ou dans la liste de vos héros. ", delegate()
                            {
                                ShowUI(heroPanelSide.position, "CONTRÔLE DU HÉRO", " Ici, vous pouvez intéragir avec le héro sélectionner. Vous pouvez zoom " +
                                       " sur lui et le suivre automatiquement avec la caméro ou même ouvrir son panneau de contrôle et lui donner des actions à faire.", delegate()
                                {
                                    ShowUI(statsPanelLeft.position, "VOTRE ARGENT", "Voici votre montant d'argent que vous possédez. Utilisez la pour" +
                                           " acheter de nouveaux héros ou conservez la pour approcher plus rapidement de votre objectif", delegate()
                                    {
                                        ShowUI(statsPanelMid.position, "TEMP RESTANT", "Vous avez un certain pour complété votre objectif monétaire." +
                                               " Garder un oeil sur ce compteur pour réussir le niveau!", delegate()
                                        {
                                            ShowUI(statsPanelRight.position, "VOTRE OBJECTIF", "Votre objectif courrant est indiqué ici. Il s'agit habituellement d'un " +
                                                   " montant d'argent à atteindre. Optimisé votre efficacité pour l'atteindre rapidement!", delegate()
                                            {
                                                ShowUI(hireHeroesButton.position, "RECRUTEMENT DE HÉROS", "Pour être plus efficace dans vos livraisons, vous pouvez " +
                                                       " recruter des héros et les placer dans la carte pour les rendre immédiatements actifs.", delegate()
                                                {
                                                    ShowMessage("DÉPLACEMENT", "Utilisé la souris ou WASD pour vous déplacez dans la carte. Appuyer sur la roulette pour drag la carte. " +
                                                                " Vous pouvez aussi Zoom-in Zoom-out avec la roulette. Utiliser le clique droit lorsque vous avez un héro de sélectionné pour " +
                                                                "automatiquement lui ajouter une action déplacement vers un endroit.", 10, delegate() {
                                                        spotlight.Off();
                                                        tutorialMessage.Hide(null);
                                                        Time.timeScale = 1;
                                                        inputBlocker.SetActive(false);
                                                    });
                                                });
                                            });
                                        });
                                    });
                                });
                            });
                        });
                    }, 10, this, true);
                }, "PIZZ-HERO", "Vous êtes le gestionnaire des livreurs de pizza de la pizzeria Pizz-Hero. Tous vos livreurs sont des super-héros " +
                                     "mais ils ont besoin de vous pour leur dire quoi faire. Donner leur des ordres de tel sorte d'être la meilleur pizzeria " +
                                     "de toute la ville.");
            }, 1, this);
        }
    }
예제 #9
0
 // Use this for initialization
 void Start()
 {
     _groundChecker   = GetComponent <GroundChecker>();
     _movementChecker = GetComponent <MovementChecker>();
     _movementChecker.X_PositionChanged += XPositionChanged;
     _movementChecker.MovementStopped   += DetectedStopping;
     _delayManager    = GetComponent <DelayManager>();
     _explosiveObject = GetComponent <ExplosiveObject>();
 }
예제 #10
0
 // Use this for initialization
 protected virtual void Start()
 {
     _delayManager   = GetComponent <DelayManager>();
     _inputManager   = GetComponent <IPlatformer2DUserControl>();
     _hpScript       = GetComponent <HPScript>();
     _hpScript.Dead += _hpScript_Dead;
     DartFired      += OnDartFired;
     _feedback       = GetComponent <Feedback>();
 }
예제 #11
0
    // Use this for initialization
    protected override void Start ()
    {
        base.Start();
        m_ListofPlayers = Utilities.GetAllPlayerData();
        m_maxSelection = GetListOfActiveButtons();
        m_DelayManager = GetComponent<DelayManager>();
        m_DelayManager.Reset();

        m_PausePanel.SetActive(false);
    }
예제 #12
0
 protected override void Start()
 {
     base.Start();
     m_MaxSponsorSelection = Database.instance.ListofSponsors.Count;
     m_MaxAbilitySelection = Database.instance.ListofAbilities.Count;
     m_DelayManager        = GetComponent <DelayManager>();
     m_DelayManager.Reset();
     m_ConfirmedOverlay.SetActive(false);
     SponsorTaken += SelectorMenu_SponsorTaken;
 }
예제 #13
0
        public CodeEditorControl()
        {
            InitializeComponent();

            _foldingManager = FoldingManager.Install(CodeEditor.TextArea);
            _delayManager   = new DelayManager(1000, OnValidateTextHandler);

            CurrentLineBackgroundRenderer.AddRendererFor(CodeEditor);
            BracketHighlightRenderer.AddRendererFor(CodeEditor);
        }
예제 #14
0
 void MakeRoad()
 {
     dotList.Add(Instantiate(dotSpritePrefab, ApplyCurveOnVecPos((transform.position + (vectorDeplacement * dotCount))), Quaternion.identity, canvas.transform));
     dotCount++;
     if (dotList[dotList.Count - 1].transform.position == pointSuivant.transform.position)
     {
         Debug.Log("Finito");
         return;
     }
     DelayManager.LocalCallTo(MakeRoad, 1, this);
 }
예제 #15
0
 // Envoyer une transmission dans l'ecran
 void SendTransmission()
 {
     transmissionCanvas.transform.DOLocalMoveY((Screen.height / 4) * 0.1f, 1);
     DelayManager.CallTo(delegate()
     {
         musicManager.PlayNotification();
     }, 0.5f);
     messageText.text = text[currentTransmission];
     currentTransmission++;
     DelayManager.CallTo(EndTransmission, timeOfTransmition);
 }
예제 #16
0
 // Use this for initialization
 protected override void Start()
 {
     base.Start();
     m_maxSelection = GetListOfActiveButtons();
     m_DelayManager = GetComponent <DelayManager>();
     m_DelayManager.Reset();
     m_myConnection = SoundManager.GetCurrentSoundConnection();
     m_RoundMenu.SetActive(false);
     m_MatchMenu.SetActive(false);
     m_RoundPanel.SetActive(false);
 }
예제 #17
0
 private static void OnIntroComplete()
 {
     //Unload all past scenes
     for (int i = 0; i < SceneManager.sceneCount; i++)
     {
         if (SceneManager.GetSceneAt(i).name != SCENENAME)
         {
             Scenes.UnloadAsync(SceneManager.GetSceneAt(i).name);
         }
     }
     DelayManager.LocalCallTo(LateLoad, 0, animator, true);
 }
예제 #18
0
파일: ToolKit.cs 프로젝트: ghrguse/ss
 public static void init(Transform root)
 {
     if (!inited)
     {
         GameObject dmObj = new GameObject();
         dmObj.name             = "DelayManager";
         dmObj.transform.parent = root;
         GameObject.DontDestroyOnLoad(dmObj);
         dm     = dmObj.AddComponent <DelayManager>();
         inited = true;
     }
 }
예제 #19
0
 /// <summary>
 /// 初始化使用Tcp网络的游戏数据
 /// </summary>
 public void InitTcpGame()
 {
     m_OpreationManager = new OpreationManager();
     m_UIManager        = new UIManager();
     m_DelayManager     = new DelayManager();
     #region 显示层
     if (GameData.m_IsExecuteViewLogic)
     {
         m_LogMessage = GameObject.Find("LogMessage").GetComponent <UILabel>();
     }
     #endregion
 }
예제 #20
0
 void ShowUI(Vector2 position, string title, string description, Action onComplete)
 {
     tutorialMessage.Hide(delegate()
     {
         spotlight.On(position, delegate()
         {
             tutorialMessage.Show(delegate()
             {
                 DelayManager.LocalCallTo(onComplete, textReadTime, this, true);
             }, title, description);
         });
     });
 }
예제 #21
0
 void ShowMessage(string description, string title, float time, Action onComplete)
 {
     tutorialMessage.Hide(delegate()
     {
         spotlight.On(tutorialMessage.transform.position, delegate()
         {
             tutorialMessage.Show(delegate()
             {
                 DelayManager.LocalCallTo(onComplete, time, this, true);
             }, description, title);
         });
     });
 }
예제 #22
0
 public void EndCall(float delay)
 {
     if (delay == 0)
     {
         myCall = null;
     }
     else
     {
         DelayManager.CallTo(delegate()
         {
             myCall = null;
         }, delay);
     }
 }
예제 #23
0
 public void SetDirectionIn(Direction dir, float time)
 {
     if (time <= 0)
     {
         this.defaultDirection = dir;
     }
     else
     {
         DelayManager.CallTo(delegate()
         {
             this.defaultDirection = dir;
         }, time);
     }
 }
예제 #24
0
 public void SetFocusIn(Personne focus, float time)
 {
     if (time <= 0)
     {
         this.focus = focus;
     }
     else
     {
         DelayManager.CallTo(delegate()
         {
             this.focus = focus;
         }, time);
     }
 }
예제 #25
0
 public void logUp()
 {
     if (suT[1].text != suT[2].text)
     {
         suT[2].color = Color.red;
         DelayManager.DelayStart(() => {
             suT[2].color = Color.black;
         }, 0.5f);
     }
     else
     {
         state_Login = false;
         SendLoginData(false, suT[0].text, suT[1].text, suT[3].text);
     }
 }
예제 #26
0
 private void OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     try
     {
         if (sender.IsEnemy && args.DangerLevel == Interrupter2.DangerLevel.High &&
             UltimateManager.Interrupt(sender))
         {
             Utility.DelayAction.Add(DelayManager.Get("ultimate-interrupt-delay"), () => R.Cast(sender.Position));
         }
     }
     catch (Exception ex)
     {
         Global.Logger.AddItem(new LogItem(ex));
     }
 }
예제 #27
0
 public static void EndGame(bool Win)
 {
     if (Win)
     {
         DelayManager.StopAll();
         // Autres animations
         Scenes.Load("GameWin");
     }
     else
     {
         DelayManager.StopAll();
         // Autres animations
         Scenes.Load("GameOver");
     }
 }
예제 #28
0
 public void SayInTelephone(string messageIn, string parleurIn, float delay = 0)
 {
     if (delay == 0)
     {
         myCall.AddMessage(messageIn, parleurIn);
     }
     else
     {
         AppelTéléphonique tempCall = myCall;
         DelayManager.CallTo(delegate()
         {
             tempCall.AddMessage(messageIn, parleurIn);
         }, delay);
     }
 }
예제 #29
0
    //Plan
    void Stage2()
    {
        stage = 2;
        print("stage 2");
        SoundManager.PlayMusic(bureauMusic, faded: true);
        frontFade.DOFade(1, 0.75f).OnComplete(delegate()
        {
            content.SetActive(false);
            backFade.gameObject.SetActive(false);
            frontFade.DOFade(0, 0.75f);
            cam.DOOrthoSize(8, 5).SetEase(Ease.InOutSine);
            cam.transform.DOMoveZ(8.5f, 5).SetEase(Ease.InOutSine).OnComplete(delegate()
            {
                eventMan.enabled = true;
                eventMan.ClearAll();

                BulleManager.instance.Say("Salut la gang!", ScenarioManager.instance.Enrique, 2);
                BulleManager.instance.Say("J’vais d’abord prendre \nquelques secondes pour \nféliciter Annoushka pour \navoir choisi la meilleure \nbusiness pour son stage \ninternational.", ScenarioManager.instance.Enrique, 6, 2);
                BulleManager.instance.Say("Elle arrive de la Russie \net travaillera avec nous \npour les 3 prochains mois.", ScenarioManager.instance.Enrique, 4, 8);

                float delay = 12;

                BulleManager.instance.Say("Merci ...\nmoi contente, \nde rencontrer tu.", ScenarioManager.instance.Annushka, 3, delay);

                delay += 3;


                BulleManager.instance.Say("Comme vous le savez,\nc’est la dernière journée\n de Justine aujourd’hui.", ScenarioManager.instance.Enrique, 4, delay);
                BulleManager.instance.Say("Mais avant qu’elle parte,\nelle doit autoriser un\npartenariat qui changera\nà tout jamais l’avenir\nde notre compagnie!", ScenarioManager.instance.Enrique, 5, delay + 4);
                BulleManager.instance.Say("J’vous dit pas le nom de \nl’autre compagnie tout’suite,\nc’est une surprise !", ScenarioManager.instance.Enrique, 4, delay + 9);

                delay += 4 + 5 + 4;

                BulleManager.instance.Say("*Rires*\nMoi j’aime ça\nles surprises\n*Rires*", ScenarioManager.instance.Samantha, 3, delay);

                delay += 3;

                BulleManager.instance.Say("Ok ouain… Je laisse\nle planning de la\njournée sur la table.", ScenarioManager.instance.Enrique, 3, delay);
                BulleManager.instance.Say("Get to work\nboys and grills!", ScenarioManager.instance.Enrique, 2, delay + 3);

                delay += 3 + 2;

                DelayManager.CallTo(Stage3, delay);
            });
        });
    }
예제 #30
0
    public void Notify()
    {
        if (!isOnGoing)
        {
            SoundManager.PlayStaticSFX(sfx_appel, 0.01f);

            isOnGoing = true;
            gameObject.SetActive(true);
            GetComponent <FadeFlash>().Play();
            DelayManager.LocalCallTo(delegate
            {
                GetComponent <FadeFlash>().Stop();
                gameObject.SetActive(false);
                isOnGoing = false;
            }, 3, this);
        }
    }
예제 #31
0
 // Use this for initialization
 void Start()
 {
     _groundChecker = GetComponent<GroundChecker>();
     _movementChecker = GetComponent<MovementChecker>();
     _movementChecker.X_PositionChanged += XPositionChanged;
     _movementChecker.MovementStopped += DetectedStopping;
     _delayManager = GetComponent<DelayManager>();
     _explosiveObject = GetComponent<ExplosiveObject>();
 }
예제 #32
0
 // Use this for initialization
 protected override void Start()
 {
     base.Start();
     _mainRigidbody = GetComponent<Rigidbody2D>();
     if(_bulletExplosionCollisionEvaluator == null) _bulletExplosionCollisionEvaluator = GetComponent<Collider2D>();
     HpChanged += OnHpChanged;
     _delayManager = GetComponent<DelayManager>();
     _delayManager.Reset();
     m_fade = FindObjectOfType<LoadingScreen>();
     if (m_fade != null) m_fade.LoadingAnimDone += M_fade_FadeDone;
     else isMuted = false;
 }
예제 #33
0
 // Use this for initialization
 protected virtual void Start()
 {
     _delayManager = GetComponent<DelayManager>();
     _inputManager = GetComponent<IPlatformer2DUserControl>();
     _hpScript = GetComponent<HPScript>();
     _hpScript.Dead += _hpScript_Dead;
     DartFired += OnDartFired;
     _feedback = GetComponent<Feedback>();
 }
예제 #34
0
 private void Awake()
 {
     // Setting up references.
     m_Controller = GetComponent<IPlatformer2DUserControl>();
     if (m_Controller == null) print("NO Platformer2DUserControls on player");
     m_GroundCheck = transform.FindChild("GroundCheck");
     m_delayManager = GetComponent<DelayManager>();
     //m_CeilingCheck = transform.FindChild("CeilingCheck");
     if (m_Anim == null) m_Anim = m_Body.GetComponent<Animator>();
     m_Rigidbody2D = GetComponent<Rigidbody2D>();
     m_MyColliders = GetComponents<Collider2D>();
     m_platforms = FindObjectsOfType<Ground>();
 }
예제 #35
0
 // Use this for initialization
 protected override void Start()
 {
     base.Start();
     m_maxSelection = GetListOfActiveButtons();
     m_DelayManager = GetComponent<DelayManager>();
     m_DelayManager.Reset();
     m_myConnection = SoundManager.GetCurrentSoundConnection();
     m_RoundMenu.SetActive(false);
     m_MatchMenu.SetActive(false);
     m_RoundPanel.SetActive(false);
 }
예제 #36
0
    // Use this for initialization
    protected override void Start()
    {
        base.Start();
        m_ListofPlayers = Utilities.GetAllPlayerData();
        m_maxSelection = GetListOfActiveButtons();
        m_DelayManager = GetComponent<DelayManager>();
        m_DelayManager.Reset();

        m_PausePanel.SetActive(false);
    }
예제 #37
0
 public void PushConfig(DartGunSettings settings, IPlatformer2DUserControl inputManager, DelayManager delayManager)
 {
     _settings = settings;
     _inputManager = inputManager;
     _delayManager = delayManager;
 }
예제 #38
0
    // Use this for initialization
    void Start()
    {
        _delay = GetComponent<DelayManager>();
        if (_delay == null) Debug.LogError("Feedback manager cannot find the delay manager on " + gameObject.name);

        if (_toFlash.Count > 0)
        {
            if (_useNewColor)
                ColorChange();

            if(_toFlash[0].enabled == true)
                SwitchEnables();
        }
    }
예제 #39
0
 // Use this for initialization
 private void Start()
 {
     if (_delayManager == null) _delayManager = GetComponent<DelayManager>();
     if (_inputManager == null) _inputManager = GetComponent<IPlatformer2DUserControl>();
     if (_mouvementManager == null) _mouvementManager = GetComponent<PlatformerCharacter2D>();
     if (_collider == null) Debug.LogError(ColliderString());
     _feedBack = GetComponent<Feedback>();
     if (_feedBack == null) Debug.LogError("Gun (Arc or shield) is unable to get the Feedback component on " + gameObject.name);
     //else _feedBack.CanShootFeedbackEvent += MeleeTimerReset;
 }
예제 #40
0
 protected override void Start()
 {
     base.Start();
     m_MaxSponsorSelection = Database.instance.ListofSponsors.Count;
     m_MaxAbilitySelection = Database.instance.ListofAbilities.Count;
     m_DelayManager = GetComponent<DelayManager>();
     m_DelayManager.Reset();
     m_ConfirmedOverlay.SetActive(false);
     SponsorTaken += SelectorMenu_SponsorTaken;
 }
예제 #41
0
    private void GetObjects()
    {
        m_MenuControls = FindObjectOfType<MenuControls>();
        if (m_MenuControls == null) Debug.LogError("Loading Screen cannot find  Menu control object in scene.");

        _delayManager = GetComponent<DelayManager>();
        if (_delayManager == null) Debug.LogError("No delay manager found on loading screen");

        if (_tipScreenGameObject == null) Debug.LogError("Loading screen is missing the tip screen game object.");
        else
        {
            _tipScreenSprite = _tipScreenGameObject.GetComponent<SpriteRenderer>();
            SetRandomColor();
        }

        _animator = GetComponent<Animator>();
        if (_animator == null) Debug.LogError("Loading Screen is missing its animator. PANIC!");

        if (_isGameplayScene)
        {
            m_spawner = FindObjectOfType<PlayerSpawner>();
            if (m_spawner == null) Debug.LogError("Loading Screen cannot find player spawner. Is this a gameplay scene? If yes, set the IsGameplayScene to true.");
            else SubscribeToEvents(m_spawner);
        }
    }
예제 #42
0
 public void SetPlayer(PlayerData player, PlayerSelect parent, int controllerID)
 {
     m_MaxSponsorSelection = Database.instance.ListofSponsors.Count;
     m_MaxAbilitySelection = Database.instance.ListofAbilities.Count;
     m_DelayManager = GetComponent<DelayManager>();
     m_CurrentSelectionState = SelectionState.Preselection;
     m_Player = player;
     m_ParentMenu = parent;
     m_ControllerID = controllerID;
     DisplaySponsor(m_SponsorSelection);
     DisplayAbility(m_AbilitySelection);
     m_CurrentSelectionState =  SetStateAndTexts(true);
     SetSelector(m_VerticalPosition);
     m_DelayManager.Reset();
     /*if (m_TakenImage.enabled)
         m_TakenImage.enabled = false;*/
     SoundManager.PlaySFX(m_PanelActivate);
 }