Exemple #1
0
 // Use this for initialization
 void Start()
 {
     source = gameObject.GetComponent <AudioSource>();
     //source.clip = nen;
     //source.loop = true;
     //source.Play();
     changelanguage = objName.GetComponent <DFTGames.Localization.Localize>();
     isFinished     = false;
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     source = gameObject.GetComponent <AudioSource>();
     //source.clip = nen;
     //source.loop = true;
     //source.Play();
     changelanguage = objName.GetComponent <DFTGames.Localization.Localize>();
     animal[0].SetActive(true);
     anim = animal[0].GetComponent <Animator>();
     anim.SetBool("SlideOut", true);
 }
Exemple #3
0
    /// <summary>
    ///
    /// </summary>
    IEnumerator Start()
    {
        changename = txtName.GetComponent <DFTGames.Localization.Localize>();
        yield return(new WaitForSeconds(0.1f));

        if (ScreenHorizontalPosition > 0.52f || ScreenHorizontalPosition < 0.48f)
        {
            Animation a = this.GetComponent <Animation>();
            //For that side is exit the UI?
            if (isRightPosition)
            {
                a.CrossFade("OnExitR", CrossFadeAnim);
            }
            else
            {
                a.CrossFade("OnExitL", CrossFadeAnim);
            }
        }
    }