示例#1
0
 // Use this for initialization
 void Start()
 {
     gamecon     = GameObject.FindWithTag("Respawn").GetComponent <Gemecon>();
     mutekibool  = false;
     renderer    = GetComponent <SpriteRenderer>();
     animator    = GetComponent <Animator>();
     Rigid2D     = GetComponent <Rigidbody2D>();
     playerstate = Playerstate.Normal;
     se          = GameObject.FindWithTag("se").GetComponent <sescript>();
     speed       = syokispeed;
 }
示例#2
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");
    }