Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     Init();
     //ReadTxt("test");
     BeginTextMov();
     RegisterEvent();
     TxtReadManager.GetInstance().BeginRead();
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        currentWidth  = _orignalWidth = MaskPanelTextBG.sizeDelta.x;
        currentHeight = _orignalHeight = MaskPanelTextBG.sizeDelta.y;

        TxtReadManager.GetInstance().BeginRead();

        EventDispatcher.GetInstance().RegisterEvent(OnGetMsg);
        ChangeMaskType(MaskType.HorizantalType);


        InvokeRepeating("ReadNext", 0, 1);
    }
Exemplo n.º 3
0
    void InitTxt()
    {
        string[] result = TxtReadManager.GetInstance().ReadTxt("ballInfo", false, "BallSaver").Split(' ');

        if (result.Length != RedNum + BlueNum)
        {
            Debug.LogError("读取失败" + result.Length);
            return;
        }
        for (int i = 0; i < RedNum; i++)
        {
            RedList.Add(int.Parse(result[i]));
        }
        for (int i = 0; i < BlueNum; i++)
        {
            BlueList.Add(int.Parse(result[RedNum + i]));
        }
    }
Exemplo n.º 4
0
 void SaveTxt()
 {
     TxtReadManager.GetInstance().WriteTxt("");
 }
Exemplo n.º 5
0
 void ReadNext()
 {
     TxtReadManager.GetInstance().ReadNext((int)(currentWidth / Mathf.Abs(deltaWidth)) - 2);
 }
Exemplo n.º 6
0
 void ReadNext()
 {
     TxtReadManager.GetInstance().ReadNext();
 }