/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { Constants.FONT = LoadingUtils.load <SpriteFont>(Content, "SpriteFont1"); GameStateMachine.getInstance().init(GraphicsDevice, Content); SoundManager.getInstance().init(Content); this.fadeParams = new FadeEffectParams { OriginalColour = Color.Black, State = FadeEffect.FadeState.Out, TotalTransitionTime = TRANSITION_TIME }; this.fadeEffect = new FadeEffect(fadeParams); StaticDrawable2DParams transitionParms = new StaticDrawable2DParams { Texture = LoadingUtils.load <Texture2D>(Content, "Chip"), Scale = new Vector2(Constants.RESOLUTION_X, Constants.RESOLUTION_Y), LightColour = Color.Black }; this.transitionItem = new StaticDrawable2D(transitionParms); this.transitionItem.addEffect(this.fadeEffect); #if WINDOWS #if DEBUG ScriptManager.getInstance().LogFile = "Log.log"; ScriptManager.getInstance().registerObject(MapEditor.getInstance(), "editor"); Debug.debugChip = LoadingUtils.load <Texture2D>(Content, "Chip"); Debug.debugRing = TextureUtils.create2DRingTexture(GraphicsDevice, (int)Constants.BOUNDING_SPHERE_SIZE, Color.White); #endif #endif }
// ------------------- FUNCOES UNITY ------------------- // private void Start() { // Inicializa efeitoFade = FindObjectOfType(typeof(FadeEffect)) as FadeEffect; player = FindObjectOfType(typeof(Player)) as Player; audioController = FindObjectOfType(typeof(AudioController)) as AudioController; }
private void Inicializar() { botaoFichario = FindObjectOfType <BotaoAbrirFichario>(); canvas = GetComponentInChildren <Canvas>(); canvas.enabled = false; var fadeEffect = GetComponentInChildren <FadeEffect>(); backgroundFadeEffect = fadeEffect; var canvasGroups = canvas.GetComponentsInChildren <CanvasGroup>(); conteudo = canvasGroups[0]; conteudo.alpha = 0; baloesEsquerda = canvasGroups[1]; baloesEsquerda.alpha = 0; baloesEsquerda.blocksRaycasts = false; focoBotaoDaJanela = canvas.transform.GetChild(0).GetComponent <Image>(); focoBotaoDaJanela.color = Color.clear; // Botão para pular tutorial aparecerá no início e desaparecerá no fim botaoPularT = conteudo.transform.GetChild(conteudo.transform.childCount - 1); }
public Ghost(ContentManager content, Vector2 position, GhostObservationHandler observerHandler, CharactersInRange charactersInRange, OnDeath onDeath, float health = Constants.DEFAULT_HEALTH) : base(content, position, SPEED, charactersInRange, onDeath, health) { this.observerHandler = observerHandler; Texture2D texture = LoadingUtils.load <Texture2D>(content, "Ghost"); StaticDrawable2DParams characterParms = new StaticDrawable2DParams { Position = position, Texture = texture, Origin = new Vector2(Constants.TILE_SIZE / 2) }; base.init(new StaticDrawable2D(characterParms)); Texture2D radiusTexture = LoadingUtils.load <Texture2D>(content, "Ring"); StaticDrawable2DParams parms = new StaticDrawable2DParams(); parms.Position = position; parms.LightColour = Color.LimeGreen; parms.Texture = radiusTexture; parms.Origin = new Vector2(Constants.TILE_SIZE / 2, -(Constants.TILE_SIZE / 4)); this.selectedImg = new StaticDrawable2D(parms); this.seeking = new Tracking(position, SPEED); this.fadeEffect = createEffect(base.LightColour); this.addEffect(fadeEffect); this.selectedFadeEffect = createEffect(this.selectedImg.LightColour); initSkills(); }
// Callback function to handle events public void OnMediaPlayerEvent(MediaPlayer mp, MediaPlayerEvent.EventType et, ErrorCode errorCode) { switch (et) { case MediaPlayerEvent.EventType.ReadyToPlay: bLoadOK = true; TryPlayVedio(); break; case MediaPlayerEvent.EventType.Started: break; case MediaPlayerEvent.EventType.FirstFrameReady: break; case MediaPlayerEvent.EventType.MetaDataReady: break; case MediaPlayerEvent.EventType.FinishedPlaying: FadeEffect.Play(Color.white, new Color(1, 1, 1, 0), 1, Close); _display.gameObject.SetActive(false); break; case MediaPlayerEvent.EventType.Error: Close(); break; } }
public TextBalloon(string text, Hero hero, World world) : base(hero.Camera) { this.world = world; textSound = ContentLoader.Instance.LoadSound("talk"); Finished += TextBalloon_Finished; fadeText = new FadeEffect(false, 50, 1f, 0f); fadeBallon = new FadeEffect(false, 70, 1f, 0f); textureStart = ContentLoader.Instance.LoadTextureByPath("Textures/Gameplay/ballonStart"); textureWidth = ContentLoader.Instance.LoadTextureByPath("Textures/Gameplay/ballonWidth"); textureEnd = ContentLoader.Instance.LoadTextureByPath("Textures/Gameplay/ballonEnd"); this.hero = hero; font = ContentLoader.Instance.LoadFont(GameScreen.Screens.Interface.TextSize.Small); pharases = text.Split('-'); Text = pharases[0]; textIndex = 0; fadeBallon.IsFocus = true; fadeBallon.Finish += FadeBallon_Completed; fadeText.IsFocus = true; fadeText.Finish += FadeEffect_Completed; SetBallonBounds(Text); Game.Components.Add(this); DrawOrder = (int)GameDrawOrder.Input; }
// Use this for initialization void Start() { //bgm bgms = GameObject.FindGameObjectWithTag("MainCamera").GetComponents <AudioSource>(); PlatformerBgm = bgms[1]; ChaseBgm = bgms[2]; EndingBgm = bgms[3]; RemoveHeartSound = bgms[4]; gameoverBgm = bgms[5]; savePointBgm = bgms[6]; scoreText.text = "Coin x " + coinScore.ToString(); instance = this; player = GameObject.FindGameObjectWithTag("Player"); playerScript = player.GetComponent <PlayerMove_refine>(); playerTrans = player.GetComponent <Transform>(); playerAudio = player.GetComponent <AudioSource>(); savePoint = player.GetComponent <SavePoint>(); fadeScript = fadeEffectUI.transform.GetChild(1).gameObject.GetComponent <FadeEffect>(); // FadeIn 캐싱 fadeIn = fadeEffectUI.transform.GetChild(0).gameObject; // FadeIn 실행 fadeIn.SetActive(true); fadeEffectUI.transform.GetChild(0).GetComponent <FadeEffect>().StartFade(); //for gameover startPosition = player.GetComponent <Transform>().position; //Packman Control packmanControl = GameObject.Find("PackmanManager").GetComponent <PackmanControl>(); chasePackman = GameObject.Find("CollisionBox").GetComponent <ChasePackman>(); }
// Update is called once per frame void Update() { Debug.Log("Score: " + score); damageMulit = GameObject.Find("Score").GetComponent <ScoreDisplay> ().damageValue; if (direction == "North" || direction == "East") { goalDistance = goalValuePlus; } else { goalDistance = goalValueMinus; } if (score <= 0) { if (!ending) { ending = true; FadeEffect fe = GameObject.Find("Veil").GetComponent <FadeEffect> (); fe.nextScene = 3; fe.active = true; StartCoroutine(fe.fadeOut()); } } }
void Start () { //Time.timeScale = 1; Map.Initialize (); timer = 0; waveTime = 0; ApplicationModel.currentEnemyNum = 0; myAudio = GetComponent<AudioSource>(); PlaySound(GAME_MUSIC); level = ApplicationModel.GetCurrentLevel(); wave = GetComponent<WaveController>(); wave.ReadFile(level.ID); next = wave.Next (); initWarning (); player = playerObject.GetComponent<Player>(); level.Start(); Debug.Log( "This level has been started "+level.GetTimesStarted()+" times."); Debug.Log( "This level has been played "+level.GetTimesPlayed()+" times."); fadeEffect = fader.GetComponent<FadeEffect> (); fadeEffect.FadeIn (); gameStartPlayed = false; }
// █ здесь начинается вызов цепи функций, что визуально прячет шары на билетах, и переворачивает сами билеты // на первом этапе, запускается сокрытие превинов, по окончанию запускает волна сокрытия всех шаров. В функции ниже... public static void startHideTickets() { MAIN.getMain.templatesHolder.expectedWin.setValue(0); // AudioSource.PlayClipAtPoint(Resources.Load<AudioClip>("Audio/CoinDrop"), Vector3.zero); // #V тестовая строчка для проиграша указаного звука var th = MAIN.getMain.ticketHolder; GameObject[] mBalls = GameObject.FindGameObjectsWithTag("missingBall"); GameObject[] aureols = GameObject.FindGameObjectsWithTag("aureols"); for (int i = 0; i < mBalls.Length; i++) { var tc = mBalls[i].GetComponent <TicketCell>(); tc.stopPlayPrewin(); } FadeEffect fe = null; for (int i = 0; i < aureols.Length; i++) { fe = Effects.addFade(aureols[i], 2.5f); // #V конец розыгрыша скорость исчезновения ареолов } if (fe != null) { fe.subscribeOnEffectDone(onAureolsHide); } else { onAureolsHide(null); } }
// Use this for initialization private void Start() { canvas = GetComponentInChildren <Canvas>(); canvas.enabled = false; var fadeEffect = GetComponentInChildren <FadeEffect>(); backgroundFadeEffect = fadeEffect; conteudo = canvas.GetComponentInChildren <CanvasGroup>(); conteudo.alpha = 0; componenteTexto = conteudo.GetComponentInChildren <TextMeshProUGUI>(); focoBotaoDaJanela = canvas.transform.GetChild(0).GetComponent <Image>(); focoBotaoDaJanela.color = Color.clear; var botoes = conteudo.GetComponentsInChildren <Button>(); // Botão Entendi só vai aparecer no final deste tutorial botaoEntendi = botoes[0].gameObject; botaoEntendi.SetActive(false); // Botão para pular tutorial aparecerá no início e desaparecerá no fim botaoPularAjuda = botoes[1].gameObject; janelaMissoes = ConselheiroComenius.JanelaMissoes; // Cadastrar função para ser invocada quando o diretor fechar o diálogo dialogoDoJean.OnEndDialogueEvent += ManagerQuest.SetupQuestLog; dialogoDoJean.OnEndDialogueEvent += Mostrar; }
public void FadeOutToGivenCamera(string paramName) { PA_Param param = FindParam(paramName); if (param == null) { return; } Camera cam = GetCameraFromParam(param, 0); if (cam != null) { FadeEffect fadeEffect = GetARequiredComponent <FadeEffect>(cam.gameObject); if (fadeEffect == null) { return; } Color curColor = fadeEffect.blendColor; Color destColor = Color.black; float duration = param.GetFloat(0); TweenColorInternal(fadeEffect, curColor, destColor, duration); } }
public void Awake() { _coreManager = CoreManager.Instance; fadeEffectScript = GameObject.Find("FadeEffect").GetComponent <FadeEffect>(); background = GameObject.Find("Background"); bgDirection = new Vector3(Random.Range(-1f, 1f), (Random.Range(-1f, 1f)), 0); }
private void Awake() { FireLull = false; FireList = new List <Chapter1_FireEfx>(); fadeEfx = objFadeEfx.GetComponent <FadeEffect>(); partnerDest = new Vector3(13.79f, -3.549f - 1.8f, 0); dm = DialogueManager.Instance(); }
public PoetryPoint(PoetryModel model, World world) : base(model, world, LoadAnimation(model.texture)) { Text = model.text; Enabled = true; Collapsed += PoetryPoint_Collapsed; fadeEffect = new FadeEffect(true, 75, 1f, 0); fadeEffect.Finish += FadeEffect_Finish; }
// Use this for initialization void Start() { raised = false; once = false; soundEffect = Resources.Load("Audios/sounds/levelend") as AudioClip; effect = GameObject.Find("fade").GetComponent <FadeEffect>(); }
/// /////////////////////////////////////////// /// список поддерживаемых эффектов: /// /////////////////////////////////////////// public static FadeEffect addFade(GameObject target, float playPeriod, bool out_ = true) // затухание указанного объекта { FadeEffect fe = new FadeEffect(target.transform, playPeriod, out_); var e = getEffects(target); e.addNewEffect(fe); return(fe); }
// Use this for initialization void Start() { gc = gameObject.GetComponent <GameController>(); be = gameObject.GetComponent <BlurEffect>(); cs = gameObject.GetComponent <CameraShake>(); fe = gameObject.GetComponent <FadeEffect>(); te = gameObject.GetComponent <TwirlEffect>(); gt = gameObject.GetComponent <GameTimer>(); }
//Use this for initialization void Start() { inventario = GetComponentInChildren <FolhaInventarioNoPlanejamento>(); planejamentoUI = GetComponentInChildren <PlanejamentoUI>(); canvas = GetComponentInChildren <Canvas>(); backgroundPreto = GetComponentInChildren <FadeEffect>(); canvas.enabled = false; }
private void Awake() { if (Instance != null) { return; } //else Instance = this; }
// Use this for initialization void Start() { gc = gameObject.GetComponent<GameController>(); be = gameObject.GetComponent<BlurEffect>(); cs = gameObject.GetComponent<CameraShake>(); fe = gameObject.GetComponent<FadeEffect>(); te = gameObject.GetComponent<TwirlEffect>(); gt = gameObject.GetComponent<GameTimer>(); }
/// <summary> /// Initialize. /// </summary> void Awake() { Instance = this; // create the fade material fadeMaterial = new Material(Shader.Find("Unlit/Transparent HUD")); fadeMaterial.color = fadeColor; mCamera = GetComponent <Camera>(); mVertex = GetVertexBySize(4, Vector3.zero); }
void Start() { GameManager.Instance().SetNowScene(); isFading = false; fadeEfx = objFadeEfx.GetComponent <FadeEffect>(); objFadeEfx.SetActive(true); fadeEfx.FadeIn(); StartCoroutine("CameraMove"); }
// Use this for initialization void Start() { soundManager = GameObject.Find("SoundManager").GetComponent <SoundManager>(); fadeEffect = GameObject.Find("FadeEffect").GetComponent <FadeEffect>(); soundManager.playBackgroundSound(2, 0); fadeEffect.applyFade(soundManager.backgroundAudio, FadeEffect.FadeState.FADE_IN); ReadData.QuaternionToHandRotionEvent += ReadData_QuaternionToHandRotionEvent; readData = GameObject.Find("ReadData").GetComponent <ReadData>(); fingers = new Fingers(); ReadData.PositionEvent += ReadData_PositionEvent; }
public static FadeEffect Play(Color start, Color end, float time, System.Action onFinish) { GameObject objEffect = Instantiate(Resources.Load <GameObject>("Prefabs/FadeEffect")); objEffect.transform.SetParent(UISystem.Instance.effectRoot.transform, false); objEffect.transform.SetSiblingIndex(UISystem.Instance.effectRoot.transform.childCount - 1); FadeEffect effect = objEffect.GetComponent <FadeEffect>(); effect.Init(start, end, time, onFinish); return(effect); }
public void AddFadeEffect() { string s = "RkoOuttaNowhere.Images.Effects.FadeEffect"; FadeEffect = new FadeEffect(); _effectList[s] = FadeEffect; _effectList[s].IsActive = true; var obj = this; _effectList[s].LoadContent(ref obj); }
// Use this for initialization void Awake() { if (instance == null) { instance = this; } else if (instance != null) { Destroy(gameObject); } }
// Use this for initialization void Start() { _fade = new FadeEffect(); _hpController = GetComponent <HealthController>(); _healthBarstartColor = _healthBar.color; _healthBarBGstartColor = _healthBarBG.color; _hpController.OnHpChange += ChangeHp; hideColor = new Color(0, 0, 0, 0); HideBars(); }
/// <summary> /// Update the control /// </summary> /// <param name="gameTime">Time since last update</param> public virtual void Update(GameTime gameTime) { if (this.FadeEffect != null) { FadeEffect.Apply(gameTime); } if (this.ColorEffect != null) { ColorEffect.Apply(gameTime); } }
private Vector3 _scaleChange; // scale of Tractor Beam void Start() { _scaleChange = new Vector3(-0.25f, -0.25f, -0.25f); transform.position = new Vector3(0, -12, 0); _spawnManager = GameObject.Find("Spawn Manager").GetComponent <SpawnManager>(); _uiManager = GameObject.Find("Canvas").GetComponent <UIManager>(); audioSource = GetComponent <AudioSource>(); _camera = GameObject.Find("Main Camera").GetComponent <CameraShaker>(); _gameManager = GameObject.Find("Game Manager").GetComponent <GameManager>(); _fadeEffect = GameObject.Find("CanvasFader").GetComponent <FadeEffect>(); _endOfLevelDialogue = GameObject.Find("DialoguePlayer").GetComponent <EndOfLevelDialogue>(); currentTractorBeam = 1000; tractorBeam.SetTractorBeam(currentTractorBeam); _canPlayerUseTractorBeam = false; currentCoreTemp = 0; thrustersCoreTemp.SetCoreTemp(currentCoreTemp); canPlayerUseThrusters = false; if (_spawnManager == null) { Debug.LogError("The Spawn Manager is null."); } if (_uiManager == null) { Debug.LogError("The UI Manager on the Canvas is null."); } if (audioSource == null) { Debug.LogError("The audio source is null."); } if (_camera == null) { Debug.LogError("The CameraShaker on the Main Camera is null."); } if (_gameManager == null) { Debug.Log("Game Manager is NULL."); } if (_endOfLevelDialogue == null) { Debug.Log("Dialogue Player is NULL."); } _gameManager.PlayMusic(1, 5.0f); _fadeEffect.FadeIn(); }
void Start() { fade = false; FadeEffect.SetBlack(); if (Application.isEditor) { mouselook = true; } }
protected void Start() { Transform canvas = GameObject.Find("Canvas").transform; Transform scoreText = canvas.Find("Scores"); _fin = canvas.transform.FindChild("Fin").GetComponent <Text>(); _restartMenu = canvas.transform.FindChild("RestartMenu").gameObject; _pauseScreen = canvas.transform.FindChild("PauseScreen"); _restartYes = canvas.transform.FindChild("RestartMenu/RestartYes").GetComponent <FadeEffect>(); _restartNo = canvas.transform.FindChild("RestartMenu/RestartNo").GetComponent <FadeEffect>(); _controller1 = DadaInput.GetJoystick(0); _camera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CameraFollow>(); _teams = DadaGame.Teams; //********** FOR DEBUG ONLY!! ************** if (_teams == null || _teams.Count == 0) { for (int i = 0; i < (int)testPlayers; i++) { DadaGame.RegisterPlayer(CreateDebugPlayers(i)); } _teams = DadaGame.Teams; } //find all respawn points _spawnPoints = Object.FindObjectsOfType <SpawnPoint>(); //shuffle the order of spawnpoints, so the players will spawn to different places ShuffleSpawnPoints(); //find the scores UI and give them the same color of the player _scoreThing = new List <GameObject>(); for (int i = 0; i < scoreText.childCount; i++) { //there is no team for this score: hide the text if (i >= _teams.Count) { scoreText.GetChild(i).gameObject.SetActive(false); } else { _scoreThing.Add(scoreText.GetChild(i).gameObject); //GameObject frame = scoreText.GetChild(i).FindChild("Frame").gameObject; //frame.GetComponent<Image>().color = _teams[i].TeamColor; scoreText.GetChild(i).GetComponent <UIScore>().ScoresBg.GetComponent <Image>().color = _teams[DadaGame.Players[i].InTeam.Number].TeamColor; } } InitLevel(); }
// Use this for initialization void Start () { //PlayerPrefs.DeleteAll(); // use this to delete all soomla's save menu int lastLevel = PlayerPrefs.GetInt(lastLevelKey); if(lastLevel == 0) lastLevel = 1; nowLevel = lastLevel; player.transform.position = LevelPosList [lastLevel]; moving = false; colliders = btnColliders.GetComponentsInChildren<Collider2D>() as Collider2D[]; SetMapUI(); fadeEffect = fader.GetComponent<FadeEffect>(); fadeEffect.FadeIn(); }
public FadeOutBehaviour(float time, FadeEffect effect = FadeEffect.Fade, InterpolationMode mode = InterpolationMode.Linear) { _Time = time; _Effect = effect; _Mode = mode; }
public override void Init() { foreach (object obj2 in base.EffectList) { this.mFadeEffect = obj2 as FadeEffect; if (this.mFadeEffect != null) { this.mFadeTime = this.mFadeEffect.Duration; break; } } base.FadeTransitionFinished += new UIEventHandler<UIHandledEventArgs>(this.OnFadeFinished); base.Init(); this.mbTargetSimAngleActive = false; this.mTattooGrid = base.GetChildByID(0x92fa000, true) as ItemGrid; this.mTattooGrid.ItemClicked += new ItemGrid.ItemGridItemClickedEventHandler(this.OnPartsGridSelect); this.mTattooGrid.ForceCellTooltips = CASController.Singleton.DebugTooltips; this.mTattooPresetsGrid = base.GetChildByID(0x92fa001, true) as ItemGrid; this.mTattooPresetsGrid.ItemClicked += new ItemGrid.ItemGridItemClickedEventHandler(this.OnPresetGridSelect); this.mTattooPresetsGrid.ForceCellTooltips = CASController.Singleton.DebugTooltips; for (ControlIDs ds = ControlIDs.AnkleGroupButton; ds <= ControlIDs.RightButton; ds += (ControlIDs) 0x1) { Button button = base.GetChildByID((uint) ds, true) as Button; if (button != null) { this.mNavButtons.Add(ds, button); button.Click += new UIEventHandler<UIButtonClickEventArgs>(this.OnNavButtonClicked); } } this.mArmPanel = base.GetChildByID(0x92fa060, true); this.mChestPanel = base.GetChildByID(0x92fa061, true); this.mBackPanel = base.GetChildByID(0x92fa062, true); this.mAdvancedModeButton = base.GetChildByID(0x92fa075, true) as Button; this.mAdvancedModeButton.Click += new UIEventHandler<UIButtonClickEventArgs>(this.OnAdvancedClick); this.mAdvancedPanel = base.GetChildByID(0x92fa020, true); for (uint i = 0x0; i < 0x5; i++) { this.mLayerButtons[i] = base.GetChildByID(0x92fa021 + i, true) as Button; this.mLayerThumbs[i] = base.GetChildByID(0x92fa026 + i, true) as Window; this.mLayerButtons[i].MouseDown += new UIEventHandler<UIMouseEventArgs>(this.OnLayerMouseDown); this.mLayerButtons[i].MouseUp += new UIEventHandler<UIMouseEventArgs>(this.OnLayerMouseUp); this.mLayerButtons[i].MouseMove += new UIEventHandler<UIMouseEventArgs>(this.OnLayerMouseMove); this.mLayerButtons[i].DragOver += new UIEventHandler<UIDragEventArgs>(this.OnMarkDragOver); this.mLayerButtons[i].DragEnter += new UIEventHandler<UIDragEventArgs>(this.OnMarkDragOver); this.mLayerButtons[i].DragDrop += new UIEventHandler<UIDragEventArgs>(this.OnMarkDragDrop); this.mLayerButtons[i].CursorID = 0x5aed101; } this.mAcceptButton = base.GetChildByID(0x92fa02d, true) as Button; this.mAcceptButton.Click += new UIEventHandler<UIButtonClickEventArgs>(this.OnAcceptClick); Button childByID = base.GetChildByID(0x92fa02e, true) as Button; childByID.Click += new UIEventHandler<UIButtonClickEventArgs>(this.OnCancelClick); this.mRemoveLayerButton = base.GetChildByID(0x92fa083, true) as Button; this.mRemoveLayerButton.Click += new UIEventHandler<UIButtonClickEventArgs>(this.OnLayerRemove); this.mUndoButton = base.GetChildByID(0x92fa080, true) as Button; this.mUndoButton.Click += new UIEventHandler<UIButtonClickEventArgs>(this.OnUndoClick); this.mRedoButton = base.GetChildByID(0x92fa081, true) as Button; this.mRedoButton.Click += new UIEventHandler<UIButtonClickEventArgs>(this.OnRedoClick); this.mFilterButton = base.GetChildByID(0x92fa070, true) as Button; this.mFilterButton.Click += new UIEventHandler<UIButtonClickEventArgs>(this.OnFilterClick); this.mDeleteButton = base.GetChildByID(0x92fa071, true) as Button; this.mDeleteButton.Click += new UIEventHandler<UIButtonClickEventArgs>(this.OnDeleteClick); this.mShareButton = base.GetChildByID(0x92fa072, true) as Button; this.mShareButton.Click += new UIEventHandler<UIButtonClickEventArgs>(this.OnShareClick); this.mSaveButton = base.GetChildByID(0x92fa073, true) as Button; this.mSaveButton.Click += new UIEventHandler<UIButtonClickEventArgs>(this.OnSaveClick); this.mRemoveAllButton = base.GetChildByID(0x92fa076, true) as Button; this.mRemoveAllButton.Click += new UIEventHandler<UIButtonClickEventArgs>(this.OnRemoveAllClick); this.mColorPickerButton = base.GetChildByID(0x92fa074, true) as Button; this.mColorPickerButton.Click += new UIEventHandler<UIButtonClickEventArgs>(this.OnColorPickerClick); this.mColorPicker2Button = base.GetChildByID(0x92fa082, true) as Button; this.mColorPicker2Button.Click += new UIEventHandler<UIButtonClickEventArgs>(this.OnColorPickerClick); this.mScaleSlider = base.GetChildByID(0x92fa02b, true) as Slider; this.mScaleSlider.MouseUp += new UIEventHandler<UIMouseEventArgs>(this.OnScaleSliderMouseUp); this.mScaleSlider.SliderValueChange += new UIEventHandler<UIValueChangedEventArgs>(this.OnScaleSliderChanged); this.mOpacitySlider = base.GetChildByID(0x92fa02c, true) as Slider; this.mOpacitySlider.MouseUp += new UIEventHandler<UIMouseEventArgs>(this.OnOpacitySliderMouseUp); this.mOpacitySlider.SliderValueChange += new UIEventHandler<UIValueChangedEventArgs>(this.OnOpacitySliderChanged); this.mOpacitySlider.MinValue = (int) (this.mOpacitySlider.MaxValue * kOpacityMinumum); this.mTattooParts = this.GetVisibleParts(BodyTypes.Tattoo); foreach (object obj3 in base.EffectList) { this.mGlideEffect = obj3 as GlideEffect; if (this.mGlideEffect != null) { break; } } this.InitCursors(); UIManager.GetSceneWindow().MouseDown += new UIEventHandler<UIMouseEventArgs>(this.OnSceneWindowCameraMouseDown); this.PopulateTunedScales(); this.RestoreState(); this.OnNavButtonClickedHelper(); CASFacialDetails.gSingleton.SetTattooPanel(); this.UpdateRemoveAllButton(); this.SetTattooCam(this.mActiveTattooID); Responder.Instance.CASModel.HighlightMode = CASHighlightModes.None; }
public void EnterSelectLevelMap() { fadeEffect = fader.GetComponent<FadeEffect> (); fadeEffect.FadeOut (); StartCoroutine (WaitForFadeOut()); }
private void Awake() { DontDestroyOnLoad (this); m_Instance = this; m_Material = new Material ("Shader \"Plane/No zTest\" { SubShader { Pass { Blend SrcAlpha OneMinusSrcAlpha ZWrite Off Cull Off Fog { Mode Off } BindChannels { Bind \"Color\",color } } } }"); }