Beispiel #1
0
    // Start is called before the first frame update
    void Start()
    {
        // load caliper event templates

        sessionLoggedIn = (SessionLoggedIn)gameObject.AddComponent(typeof(SessionLoggedIn));
        noteCreated     = (NoteCreated)gameObject.AddComponent(typeof(NoteCreated));
        noteDeleted     = (NoteDeleted)gameObject.AddComponent(typeof(NoteDeleted));
        noteSaved       = (NoteSaved)gameObject.AddComponent(typeof(NoteSaved));
        noteLoaded      = (NoteLoaded)gameObject.AddComponent(typeof(NoteLoaded));
        imageIdentified = (ImageIdentified)gameObject.AddComponent(typeof(ImageIdentified));
    }
    // Start is called before the first frame update
    void Start()
    {
        // load caliper event templates

        sessionLoggedIn     = (SessionLoggedIn)gameObject.AddComponent(typeof(SessionLoggedIn));
        feedbackCreated     = (FeedbackCreated)gameObject.AddComponent(typeof(FeedbackCreated));
        imageIdentified     = (ImageIdentified)gameObject.AddComponent(typeof(ImageIdentified));
        feedbackLoaded      = (FeedbackLoaded)gameObject.AddComponent(typeof(FeedbackLoaded));
        posterContentLoaded = (PosterContentLoaded)gameObject.AddComponent(typeof(PosterContentLoaded));

        // load caliper bearing token from text resource

        if (Resources.Load("caliper.bearertoken"))
        {
            thisBearerTokenFile = (TextAsset)Resources.Load("caliper.bearertoken", typeof(TextAsset));
        }

        // send caliper event signalling beginning of session

        SessionLoggedIn();
    }