protected override void Awake() { currentHealth = maximumHealth; spriteRender = GetComponent <SpriteRenderer> (); girlMovement = GetComponent <GirlMovement> (); girlTransform = GetComponent <Transform> (); playerScore = GameObject.FindGameObjectWithTag("Score").GetComponent <ScoreManager> (); }
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; }
private IEnumerator Move(GirlMovement girl) { yield return(new WaitForSeconds(0.3f)); girl.girlSpeed = 2; }
void Start() { girl = GameObject.Find("Girl"); girlMov = girl.GetComponent <GirlMovement>(); anim = GetComponent <Animator>(); }
private IEnumerator stop(GirlMovement girl) { yield return(new WaitForSeconds(0.1f)); girl.girlSpeed = 0; }