private void SetUpSymbolPositions() { ExclamationMark.transform.localPosition = wallyTarget * 0.9f + new Vector3( Wally.GetComponent <RectTransform>().sizeDelta.x / 2f * 1.1f, Wally.GetComponent <RectTransform>().sizeDelta.y / 2f * 1.1f, 0); QuestionMark.transform.localPosition = yuTarget + new Vector3( Yu.GetComponent <RectTransform>().sizeDelta.x / 2.8f, Yu.GetComponent <RectTransform>().sizeDelta.y / 2.5f, 0); LaurenceMark.transform.localPosition = laurenceTarget * 0.9f + new Vector3( Laurence.GetComponent <RectTransform>().sizeDelta.x / 2.3f, Laurence.GetComponent <RectTransform>().sizeDelta.y / 9.5f, 0); }
private void DoFadingOut() { float duration = 1.5f; Wally.GetComponent <Image>().CrossFadeAlpha(0, duration, false); Gen.GetComponent <Image>().CrossFadeAlpha(0, duration, false); Laurence.GetComponent <Image>().CrossFadeAlpha(0, duration, false); Yu.GetComponent <Image>().CrossFadeAlpha(0, duration, false); Wen.GetComponent <Image>().CrossFadeAlpha(0, duration, false); QuestionMark.GetComponent <Image>().CrossFadeAlpha(0, duration, false); ExclamationMark.GetComponent <Image>().CrossFadeAlpha(0, duration, false); LaurenceMark.GetComponent <Image>().CrossFadeAlpha(0, duration, false); TBoundary.GetComponent <Image>().CrossFadeAlpha(0, duration, false); TColor.GetComponent <Image>().CrossFadeAlpha(0, duration, false); S1Boundary.GetComponent <Image>().CrossFadeAlpha(0, duration, false); S1Color.GetComponent <Image>().CrossFadeAlpha(0, duration, false); S2Boundary.GetComponent <Image>().CrossFadeAlpha(0, duration, false); S2Color.GetComponent <Image>().CrossFadeAlpha(0, duration, false); Destroy(); }