17 lines
389 B
C#
17 lines
389 B
C#
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);
|
|
}
|
|
}
|
|
}
|