Beispiel #1
0
 protected override void Awake()
 {
     currentHealth = maximumHealth;
     spriteRender  = GetComponent <SpriteRenderer> ();
     girlMovement  = GetComponent <GirlMovement> ();
     girlTransform = GetComponent <Transform> ();
     playerScore   = GameObject.FindGameObjectWithTag("Score").GetComponent <ScoreManager> ();
 }
Beispiel #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;
    }
Beispiel #3
0
    private IEnumerator     Move(GirlMovement girl)
    {
        yield return(new WaitForSeconds(0.3f));

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

        girl.girlSpeed = 0;
    }