Пример #1
0
 public void Setup(ToastMgr _mgr, string msg, Toast.ToastColor color, float displaySecs)
 {
     mgr = _mgr;
     SetColor(color);
     SetText(msg);
     SetTimeout(displaySecs);
     SetIndex(0);
 }
Пример #2
0
    // Use this for initialization

    void Start()
    {
        // &&& Dumb hcak - might not even do anything
        // Make em start so they all call Start() - then they'll get disabled
        foreach (GameObject go in stages)
        {
            go.SetActive(true);
        }

        _btnLayerMask = (1 << gameObject.layer);
        setInitialStage();
        setState( );

        _dbgFPSMesh = (TextMeshPro)transform.Find("fpsdisp").GetComponent <TextMeshPro>();        // might or might not be there
        _toastMgr   = (ToastMgr)transform.Find("ToastMgr").GetComponent <ToastMgr>();
    }