Пример #1
0
 protected override void Awake()
 {
     currentHealth = maximumHealth;
     spriteRender  = GetComponent <SpriteRenderer> ();
     girlMovement  = GetComponent <GirlMovement> ();
     girlTransform = GetComponent <Transform> ();
     playerScore   = GameObject.FindGameObjectWithTag("Score").GetComponent <ScoreManager> ();
 }
Пример #2
0
    private IEnumerator     StopGirl(GirlMovement girl)
    {
        yield return(new WaitForSeconds(0.1f));

        Debug.Log("NNN");
        girl.girlSpeed = 0;
        move           = true;
        yield return(new WaitForSeconds(time));

        girl.girlSpeed = 2;
    }
Пример #3
0
    private IEnumerator     Move(GirlMovement girl)
    {
        yield return(new WaitForSeconds(0.3f));

        girl.girlSpeed = 2;
    }
Пример #4
0
 void Start()
 {
     girl    = GameObject.Find("Girl");
     girlMov = girl.GetComponent <GirlMovement>();
     anim    = GetComponent <Animator>();
 }
Пример #5
0
    private IEnumerator     stop(GirlMovement girl)
    {
        yield return(new WaitForSeconds(0.1f));

        girl.girlSpeed = 0;
    }