Browse Source

Add warnings

Josh Engebretson 9 years ago
parent
commit
dd43095b4e

+ 3 - 3
FeatureExamples/Resources/Components/Ragdoll.cs

@@ -118,7 +118,7 @@ namespace FeatureExamples
             Node boneNode = Node.GetChild(boneName, true);
             Node boneNode = Node.GetChild(boneName, true);
             if (boneNode == null)
             if (boneNode == null)
             {
             {
-                //Log.Write(LogLevel.Warning, $"Could not find bone {boneName} for creating ragdoll physics components");
+                Log.Warn($"Could not find bone {boneName} for creating ragdoll physics components");
                 return;
                 return;
             }
             }
 
 
@@ -147,12 +147,12 @@ namespace FeatureExamples
             Node parentNode = Node.GetChild(parentName, true);
             Node parentNode = Node.GetChild(parentName, true);
             if (boneNode == null)
             if (boneNode == null)
             {
             {
-                //Log.Write(LogLevel.Warning, $"Could not find bone {boneName} for creating ragdoll constraint");
+                Log.Warn($"Could not find bone {boneName} for creating ragdoll constraint");
                 return;
                 return;
             }
             }
             if (parentNode == null)
             if (parentNode == null)
             {
             {
-                //Log.Write(LogLevel.Warning, $"Could not find bone {parentName} for creating ragdoll constraint");
+                Log.Warn($"Could not find bone {parentName} for creating ragdoll constraint");
                 return;
                 return;
             }
             }
 
 

+ 1 - 3
FeatureExamples/Resources/Scripts/AtomicMain.cs

@@ -8,9 +8,7 @@ public class AtomicMain : AppDelegate
 {
 {
     public override void Start()
     public override void Start()
     {
     {
-        // AtomicNET.GetSubsystem<Player>().LoadScene("Scenes/Scene.scene");
-
-        sample = new SkeletalAnimationSample();
+        sample = new RagdollSample();
         sample.Start();
         sample.Start();
         
         
     }
     }