Пример #1
0
    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>());
    }
Пример #2
0
    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);
    }
Пример #3
0
        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);
            }
        }
Пример #4
0
 public static void Log(string msg)
 {
     PDebug.Log("[CountdownToLaunch]: " + msg);
 }