//>>>TOOLTIPS<<<<< public void Awake() { _letterPause = 0.03f; _dialogue = GetComponentInChildren <Text>(); _animators = GetComponentsInChildren <Animator>(); for (int i = 0; i < _animators.Length; i++) { switch (_animators[i].transform.name) { case "Proffessor": _proffessorAnimator = _animators[i]; break; case "CatBar": _catBarAnimator = _animators[i]; break; case "Arrow": _arrow = _animators[i]; break; case "Cat": _cat = _animators[i]; break; case "ProffessorCrash": _proffessorCrash = _animators[i]; break; case "FadePanel": _fade = _animators[i]; break; } } _originalLetterPauseValue = _letterPause; if (GameObject.FindGameObjectWithTag("Polaroid") != null) { _polaroid = GameObject.FindGameObjectWithTag("Polaroid").GetComponent <Polaroid>(); } if (GameObject.FindGameObjectWithTag("Dog") != null) { _randomDog = GameObject.FindGameObjectWithTag("Dog").GetComponent <Card>(); } }
/// <summary> /// Alters the colors of the image recreating an old Polaroid camera effect. /// </summary> /// <param name="source">The image this method extends.</param> /// <param name="rectangle"> /// The <see cref="Rectangle"/> structure that specifies the portion of the image object to alter. /// </param> /// <param name="progressHandler">A delegate which is called as progress is made processing the image.</param> /// <returns>The <see cref="Image"/>.</returns> public static Image Polaroid(this Image source, Rectangle rectangle, ProgressEventHandler progressHandler = null) { Polaroid processor = new Polaroid(); processor.OnProgress += progressHandler; try { return source.Process(rectangle, processor); } finally { processor.OnProgress -= progressHandler; } }