void Awake()
    {
        rb = GetComponent <Rigidbody2D>();
        sb = GetComponentInParent <ShooterBallena>();

        hasRotated = false;
    }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     spawnTime = Time.time;
     barraTorre.SetLifetime(lifetime);
     if (GetComponentInChildren <ShooterBallena>())
     {
         sb = GetComponentInChildren <ShooterBallena>();
     }
 }