mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 21:55:55 +00:00
Forcefield Shader
This commit is contained in:
parent
a13355be42
commit
f23d84071a
9 changed files with 210 additions and 14 deletions
|
|
@ -5,9 +5,9 @@ using Cirno.Scripts;
|
|||
|
||||
public partial class Door : Activable
|
||||
{
|
||||
private AnimatedSprite2D _animatedSprite;
|
||||
private CollisionShape2D _collisionShape;
|
||||
private CollisionShape2D _solidShape;
|
||||
protected AnimatedSprite2D _animatedSprite;
|
||||
protected CollisionShape2D _collisionShape;
|
||||
protected CollisionShape2D _solidShape;
|
||||
// Called when the node enters the scene tree for the first time.
|
||||
|
||||
[Export]
|
||||
|
|
@ -27,7 +27,7 @@ public partial class Door : Activable
|
|||
{
|
||||
}
|
||||
|
||||
public void Open()
|
||||
public virtual void Open()
|
||||
{
|
||||
_animatedSprite.Play("Opening");
|
||||
State = DoorState.Open;
|
||||
|
|
@ -36,7 +36,7 @@ public partial class Door : Activable
|
|||
//_solidShape.Disabled = true;
|
||||
}
|
||||
|
||||
public void Close()
|
||||
public virtual void Close()
|
||||
{
|
||||
_animatedSprite.Play("Closing");
|
||||
State = DoorState.Closed;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue