예제 #1
0
    // Start is called before the first frame update
    void Start()
    {
        slider      = transform.GetComponent <Slider>();
        text        = transform.Find("Number").GetComponent <Text>();
        gameManager = ProgramManager.Instance;

        jointManager = JointManager.Instance;

        gameManager.OnDatasetPanelChange += OnDatasetPanelOpen;
        OnDatasetPanelOpen(this, false);
    }
 public StreamDataGenerator(
     IJointMangerAction jointManager,
     IFingerAction thumb,
     IFingerAction indexFinger,
     Camera cam,
     bool isFullSize)
 {
     this.jointManager = jointManager;
     this.thumb        = thumb;
     this.indexFinger  = indexFinger;
     this.cam          = cam;
     this.isFullSize   = isFullSize;
     ConfigureRenderSettings();
 }
    // Start is called before the first frame update
    public virtual void Initialize(IStreamGeneratorAction streamDataGenerator,
                                   IJointMangerAction jointManager,
                                   ITouchManagerAction touchManager,
                                   IPanelAction datasetPanel,
                                   string folderName,
                                   string csvFileName)
    {
        this.streamDataGenerator = streamDataGenerator;
        this.jointManager        = jointManager;
        this.datasetPanel        = datasetPanel;
        this.FolderName          = folderName;
        this.CSVFileName         = csvFileName;

        // Subscribe the event of touch manager
        touchManager.OnTouchCalcFinish += (sender, e) =>
        {
            IsValid    = e;
            Processing = false;
        };
    }