Exemplo n.º 1
0
    // Use this for initialization
    protected virtual void Start()
    {
        player = GameObject.FindGameObjectWithTag("Player");

        radiusOfRotation = FirstBossController.GetRadius();
        speedOfRotation  = 3.5f;

        originalScaleX = transform.localScale.x;
        originalScaleY = transform.localScale.y;

        health                 = 5f;
        centerOfRotation       = new Vector2(0, 0);
        defaultAccelProjectile = 3f;
        currAccelProjectile    = defaultAccelProjectile;

        coll = GetComponent <Collider2D>();
        rb   = GetComponent <Rigidbody2D>();

        timeCreated = Time.time;

        StartCoroutine(IncreaseSizeAndStartRotation());

        damageTakenPerProjectile = 1f;
        timePerProjectile        = 1f;

        StartCoroutine(StartAttacking());
    }
 // Use this for initialization
 void Start()
 {
     m_bossController = GetComponentInParent <FirstBossController>();
     if (m_bossController == null)
     {
         Debug.Log("m_bossContoller not found!");
     }
 }