コード例 #1
0
 void Awake()
 {
     _skreen = new Skreen(settings);
     skreen.AddLine("Lorem Ipsum is simply dummy text of the printing and typesetting industry.");
     skreen.AddLine("Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,");
     skreen.AddLine("when an unknown printer took a galley of type and scrambled it to make a type specimen book.");
     skreen.AddLine("It has survived not only five centuries, but also the leap into electronic typesetting,");
     skreen.AddLine("remaining essentially unchanged.");
     skreen.AddLine("It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,");
     skreen.AddLine("and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.");
 }
コード例 #2
0
    void Redraw(Skreen skreen)
    {
        int linesCount = skreen.Lines;
        int screenLine = 0;

        for (int i = 0 + skreen.CursorY; i < linesCount; i++)
        {
            DrawLine(skreen.GetLine(i));
            map.SetPixels32(0, program.skreen.Height - screenLine - 1, program.skreen.Width, 1, colorbuffer);
            screenLine++;
        }
        map.Apply();
    }
コード例 #3
0
ファイル: Skreen.cs プロジェクト: pointcache/unity3d-Skreen
 public void CheckBounds(Skreen skreen)
 {
     pos_x = Mathf.Clamp(pos_x, 0, skreen.width);
     pos_y = Mathf.Clamp(pos_x, 0, skreen.lines.Count);
 }