mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-06-11 05:54:07 +00:00
Remove test debug stuff
This commit is contained in:
parent
de6067c629
commit
06f79de4cf
|
@ -1,3 +1,3 @@
|
||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:f5d7f25f6cada27c2d6ca7ce4b32ef70606ea0d1b7d1d572538c3ee97cee3179
|
oid sha256:f6f3c4a2f97982581ebc02fe5616f7be9c29cd2bc912201f9c5e0492de527785
|
||||||
size 87040
|
size 86528
|
||||||
|
|
|
@ -87,7 +87,6 @@
|
||||||
<Compile Include="Text/FontLoader.cs" />
|
<Compile Include="Text/FontLoader.cs" />
|
||||||
<Compile Include="Text/TextRenderer.cs" />
|
<Compile Include="Text/TextRenderer.cs" />
|
||||||
<Compile Include="Text/DecalText.cs" />
|
<Compile Include="Text/DecalText.cs" />
|
||||||
<Compile Include="Test/TestLayers.cs" />
|
|
||||||
<Compile Include="Text\DecalTextStyle.cs" />
|
<Compile Include="Text\DecalTextStyle.cs" />
|
||||||
<Compile Include="Text\TextRenderOutput.cs" />
|
<Compile Include="Text\TextRenderOutput.cs" />
|
||||||
<Compile Include="Text\TextRenderJob.cs" />
|
<Compile Include="Text\TextRenderJob.cs" />
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
using System;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace ConformalDecals.Test {
|
|
||||||
public class TestLayers : PartModule {
|
|
||||||
|
|
||||||
[KSPField(guiActive = true)]
|
|
||||||
public int layer = 2;
|
|
||||||
|
|
||||||
public override void OnStart(StartState state) {
|
|
||||||
base.OnStart(state);
|
|
||||||
|
|
||||||
|
|
||||||
Part.layerMask.value |= (1 << 3);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Update() {
|
|
||||||
foreach (var collider in GameObject.FindObjectsOfType<Collider>()) {
|
|
||||||
if (collider.gameObject.layer == 3) {
|
|
||||||
Debug.Log($"Has layer 3: {collider.gameObject.name}");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[KSPEvent(guiActive = true, guiActiveEditor = true, guiName = "switch layers")]
|
|
||||||
public void Switch() {
|
|
||||||
Debug.Log(Part.layerMask.value);
|
|
||||||
|
|
||||||
var cube = part.FindModelTransform("test");
|
|
||||||
layer = (layer + 1) % 32;
|
|
||||||
cube.gameObject.layer = layer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user