init commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class DayCycle : DirectionalLight3D {
|
||||
|
||||
Options _Options;
|
||||
Reference _Reference;
|
||||
|
||||
public override void _Process(double delta) {
|
||||
_Options = GetNode<Options>( "/root/Options" );
|
||||
_Reference = GetNode<Reference>("/root/Reference");
|
||||
if ( _Options.isServer ){
|
||||
Rotation = Rotation + new Vector3(Convert.ToSingle(delta),0,0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user