Реализация живого доспеха

This commit is contained in:
Евгений Титаренко 2023-08-18 01:14:55 +03:00
parent 64e6187aab
commit aca884b891
5 changed files with 354 additions and 4 deletions

View file

@ -9,11 +9,13 @@ public partial class Player : CharacterBody2D
public bool Alive = true;
public static Player Instance { get; private set; }
protected AnimatedSprite2D Sprite;
public override void _Ready()
{
base._Ready();
Instance = this;
Sprite = (AnimatedSprite2D)FindChild("AnimatedSprite2D");
}