public UIAtlas GetAtals(string name) { var obj = GetPrefab(name); if (obj == null) { PDebug.Break(); PDebug.Log("<size=20> : error: " + name + "</size>"); } return(obj.GetComponent <UIAtlas>()); }
public static byte[] GetRelativeFileBytes(string relativePath) { PDebug.Log("Load from Resouces! " + relativePath); TextAsset data = Resources.Load(relativePath) as TextAsset; byte[] bytes = null; if (data != null) { bytes = data.bytes; } return(bytes); }
public override void OnUpdate() { if (Input.GetKey(KeyCode.E)) { Transform obj = part.FindModelTransform("cargobay"); //Transform pivot = part.FindModelTransform("GEO_CargoBay07"); /*obj.Rotate(Vector3.up * 10, Space.Self); * obj.Rotate(Vector3.right * 10, Space.Self); * obj.Rotate(Vector3.forward * 10, Space.Self);*/ obj.eulerAngles = obj.eulerAngles + new Vector3(1, 1, 1); PDebug.Log(obj.localEulerAngles.x); PDebug.Log(obj.localEulerAngles.y); PDebug.Log(obj.localEulerAngles.z); } if (Input.GetKey(KeyCode.W)) { PDebug.Log("W"); this.transform.Rotate(Vector3.up * 10, Space.Self); } }
public static void Log(string msg) { PDebug.Log("[CountdownToLaunch]: " + msg); }