mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 12:55:54 +00:00
Redesigned bullet emitters
This commit is contained in:
parent
ed87163b2f
commit
7b24e47739
16 changed files with 306 additions and 28 deletions
17
Scripts/Components/Actors/EmitterActivationStateSprite.cs
Normal file
17
Scripts/Components/Actors/EmitterActivationStateSprite.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class EmitterActivationStateSprite : Sprite2D
|
||||
{
|
||||
public void ChangeState(bool enabled)
|
||||
{
|
||||
if (enabled)
|
||||
{
|
||||
this.Frame = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Frame = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue