massive number of fixes, removed compilation error, logs, negative scale issues, serialization issues ETC
This commit is contained in:
@@ -5,8 +5,9 @@ using UnityEngine;
|
||||
|
||||
namespace Beyond
|
||||
{
|
||||
|
||||
[InitializeOnLoad]
|
||||
public class DebugLoggerInitializer
|
||||
public class DebugLoggerInitializer : MonoBehaviour
|
||||
{
|
||||
/*
|
||||
static DebugLoggerInitializer()
|
||||
|
||||
@@ -32,7 +32,16 @@ namespace Beyond
|
||||
component = g.GetComponentInChildren<T>();
|
||||
return component;
|
||||
}
|
||||
*/
|
||||
*/
|
||||
public static void SetActiveUpHierarchy(this GameObject g, bool active)
|
||||
{
|
||||
g.SetActive(active);
|
||||
if (g.transform.parent)
|
||||
{
|
||||
SetActiveUpHierarchy(g.transform.parent.gameObject, active);
|
||||
}
|
||||
}
|
||||
|
||||
public static T FindComponentDownHierarchy<T>(this GameObject g) where T : Component
|
||||
{
|
||||
T component;
|
||||
|
||||
Reference in New Issue
Block a user