Skip to content

Commit 32f0012

Browse files
committedOct 6, 2017
Try to fix a light bug
1 parent 428a5ce commit 32f0012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/Kopernicus.Components/KopernicusStar.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ protected override void Awake()
193193
SolarFlux = new Dictionary<String, Double>();
194194
Stars.Add(this);
195195
DontDestroyOnLoad(this);
196-
light = gameObject.GetComponent<Light>();
196+
light = gameObject.GetComponentInChildren<Light>();
197197

198198
// Gah
199199
typeof(Sun).GetFields(BindingFlags.Instance | BindingFlags.NonPublic).Last(f => f.FieldType == typeof(Light)).SetValue(this, light);

0 commit comments

Comments
 (0)
Please sign in to comment.