mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 07:45:55 +00:00
Rotate bullet pattern to face parent
This commit is contained in:
parent
ed86ffd184
commit
7d267c406d
19 changed files with 1325 additions and 1245 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using Godot;
|
||||
using Godot.Collections;
|
||||
|
||||
namespace Cirno.Scripts.Interactables._3D;
|
||||
|
||||
|
|
@ -28,6 +29,29 @@ public partial class AnimatedSwitch3D : Switch3D
|
|||
|
||||
SyncAnimation();
|
||||
}
|
||||
|
||||
public override void _func_godot_apply_properties(Dictionary<string, Variant> props)
|
||||
{
|
||||
base._func_godot_apply_properties(props);
|
||||
// TargetGroup = props["target"].AsString();
|
||||
// if (props.TryGetValue("key", out var prop))
|
||||
// {
|
||||
// RequirementKeys = [prop.AsString()];
|
||||
// }
|
||||
|
||||
// if (props.TryGetValue("activationtype", out var type))
|
||||
// {
|
||||
// var t = Enum.TryParse(type, true, out ActivationType activationType);
|
||||
// if (t)
|
||||
// {
|
||||
// ActivationType = activationType;
|
||||
// }
|
||||
// }
|
||||
|
||||
var startEnabled = props["start_enabled"].AsBool();
|
||||
State = startEnabled ? DoorState.Open : DoorState.Closed;
|
||||
|
||||
}
|
||||
|
||||
private void SyncAnimation()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue