Exemple #1
0
    // Use this for initialization
    void Start()
    {
        gamecon     = GameObject.FindWithTag("Respawn").GetComponent <Gemecon>();
        fadasc      = GameObject.FindWithTag("fada").GetComponent <fadascript>();
        enemydamege = GetComponent <EnemyDamege>();
        circoli     = GetComponent <CircleCollider2D>();
        bossstate   = Bossstate.spawn;
        check       = turn;
        rigid2d     = GetComponent <Rigidbody2D>();


        bullet.transform.localScale  = new Vector2(1.5f, 2.0f);
        bullet2.transform.localScale = new Vector2(1.0f, 2.0f);


        StartCoroutine("shot");
    }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     enemydamege = GetComponent <EnemyDamege>();
     score       = GameObject.FindGameObjectWithTag("Score").GetComponent <Score>();
 }