Exemple #1
0
 // Use this for initialization
 void Start()
 {
     timer = 0f;
     newVal = 0f;
     check = 0;
     check1 = 0;
     resetCounter = 0.15f;
     StartCoroutine (textLarge(1));
     playerScript = player.GetComponent<Player>();
     bossScript = boss.GetComponent<Boss>();
 }
        // Use this for initialization
        void Start()
        {
            boss = FindObjectOfType<Boss> ();

            if (boss.facingLeft == true) {
                Vector3 theScale = transform.localScale;
                theScale.x *= -1;
                transform.localScale = theScale;
                speed = -speed;
            }
        }