예제 #1
0
    // Use this for initialization
    public override void Start()
    {
        task = (SignOffTask)panelController.currentTask;
        char[] arr = { 'a', 'b', 'c', 'd' };
        Dictionary = arr;

        inputButtons = new Button[5];
        for (int i = 0; i < 5; i++)
        {
            int j = i;
            inputButtons[i] = Instantiate(ButtonPrefab, buttonParent.transform).GetComponent <Button>();
            inputButtons[i].onClick.AddListener(() =>
            {
                ClickInputButton(j);
            });
        }
        InputText.text           = "";
        TodaysSignatureText.text = TodaysSignature.GetInstance().signature;
        if (!task.isApproving)
        {
            StatusText.text = "PLS SIGN";
        }
        else
        {
            StatusText.text = "PENDING";
        }
    }
예제 #2
0
    public override Task Create()
    {
        SignOffTask task = new SignOffTask();

        task.InitTaskWithTaskSO(this);
        task.taskPanel = ShipPanel.Signature;
        return(task);
    }