void Awake() { rb = GetComponent <Rigidbody2D>(); sb = GetComponentInParent <ShooterBallena>(); hasRotated = false; }
// Start is called before the first frame update void Start() { spawnTime = Time.time; barraTorre.SetLifetime(lifetime); if (GetComponentInChildren <ShooterBallena>()) { sb = GetComponentInChildren <ShooterBallena>(); } }