public void Init(NewWorld world) { this.world = world; this.Idle(); m_runAnimation.GetChild <Area2D>(0).Connect("area_entered", world, "EndGame"); m_crouchAnimation.GetChild <Area2D>(0).Connect("area_entered", world, "EndGame"); }
public override void _Ready() { sparks = (AnimatedSprite)GetChild(0); sparksPlayer = (AnimationPlayer)sparks.GetChild(0); bronzeTxtr = (Texture)ResourceLoader.Load(bronzePath); silverTxtr = (Texture)ResourceLoader.Load(silverPath); goldTxtr = (Texture)ResourceLoader.Load(goldPath); platinumTxtr = (Texture)ResourceLoader.Load(platinumPath); GD.Print("medal textures loaded"); Texture = null; }