public override void _Ready() { player = GetTree().CurrentScene.GetNode <Player>("Player"); sprite = GetNode <Sprite>("EnemySprite"); GlobalPosition = Utlities.RandPosition(new Vector2(320f, 180f), GetTree()); timeBetweenShots = startTimeBetweenShots; Connect("SEnemyDied", GetTree().CurrentScene, "OnEnemyDied"); Connect("SSpawnPoints", GetTree().CurrentScene, "SpawnPoints"); }