void Awake()
    {
        this.m_TuioManager = UniducialLibrary.TuioManager.Instance;

        //uncomment next line to set port explicitly (default is 3333)
        //tuioManager.TuioPort = 7777;

        this.m_TuioManager.Connect();



        //check if the game object needs to be transformed in normalized 2d space
        if (isAttachedToGUIComponent())
        {
            Debug.LogWarning("Rotation of GUIText or GUITexture is not supported. Use a plane with a texture instead.");
            this.m_ControlsGUIElement = true;
        }

        this.m_ScreenPosition       = Vector2.zero;
        this.m_WorldPosition        = Vector3.zero;
        this.m_Direction            = Vector2.zero;
        this.m_Angle                = 0f;
        this.m_AngleDegrees         = 0;
        this.m_Speed                = 0f;
        this.m_Acceleration         = 0f;
        this.m_RotationSpeed        = 0f;
        this.m_RotationAcceleration = 0f;
        this.m_IsVisible            = true;
    }
예제 #2
0
    void Awake()
    {
        this.m_TuioManager = UniducialLibrary.TuioManager.Instance;
        m_settings         = Settings.Instance;

        //uncomment next line to set port explicitly (default is 3333)
        //tuioManager.TuioPort = 7777;

        this.m_TuioManager.Connect();

        //check if the game object needs to be transformed in normalized 2d space
        if (isAttachedToGUIComponent())
        {
            Debug.LogWarning("Rotation of GUIText or GUITexture is not supported. Use a plane with a texture instead.");
            this.m_ControlsGUIElement = true;
        }
        this.testMarker             = transform.parent.name.Equals(m_settings.testMarkerParentName);
        this.m_ScreenPosition       = Vector2.zero;
        this.m_WorldPosition        = Vector3.zero;
        this.m_Direction            = Vector2.zero;
        this.m_Angle                = 0f;
        this.m_AngleDegrees         = 0;
        this.m_Speed                = 0f;
        this.m_Acceleration         = 0f;
        this.m_RotationSpeed        = 0f;
        this.m_RotationAcceleration = 0f;
        this.m_IsVisible            = true;
        //check if marker is a loopBarMarker;
        this.isLoopBarMarker = this.GetComponent <LoopController>();
        this.isJoker         = this.transform.parent.CompareTag(m_settings.jokerParentTag);
        this.isSnapped       = false;
        //movement threshold
        this.oldPosition = transform.position;
    }
예제 #3
0
 void Awake()
 {
     this.m_TuioManager = UniducialLibrary.TuioManager.Instance;
     TimeToWarn         = Countdown - WaitingTime;
     ResetTime          = Countdown;
     this.m_TuioManager.Connect();
     text         = Ausgabe.text; //Holt Text aus Textelement
     Ausgabe.text = "";
 }
예제 #4
0
        public TuioManager()
        {
            if (m_Instance != null)
            {
                Debug.LogError("Trying to create two instances of singleton.");
                return;
            }

            m_Instance = this;

            m_Client = new TuioClient();
            m_Client.addTuioListener(this);

            //init members
            this.m_TUIOObjects = new List <TuioObject>();
        }
    void Awake()
    {
        this.m_TuioManager = UniducialLibrary.TuioManager.Instance;
        this.m_TuioManager.Connect();

        this.m_ScreenPosition       = Vector2.zero;
        this.m_WorldPosition        = Vector3.zero;
        this.m_Direction            = Vector2.zero;
        this.m_Angle                = 0f;
        this.m_AngleDegrees         = 0;
        this.m_Speed                = 0f;
        this.m_Acceleration         = 0f;
        this.m_RotationSpeed        = 0f;
        this.m_RotationAcceleration = 0f;
        this.m_IsVisible            = true;
    }
예제 #6
0
        public TuioManager()
        {
            if (m_Instance != null)
            {
                Debug.LogError("Trying to create two instances of singleton.");
                return;
            }

            m_Instance = this;

            m_Client = new TuioClient();
            m_Client.addTuioListener(this);

            //init members
            this.m_TUIOObjects = new List<TuioObject>();
        }
예제 #7
0
    void Awake()
    {
        this.m_TuioManager = UniducialLibrary.TuioManager.Instance;
        this.ms_Instance   = ApfelManager.Instance;
        ms_Instance.Sun    = this; //Speichert sich selbst im Management
        //uncomment next line to set port explicitly (default is 3333)
        //m_TuioManager.TuioPort = 7777;

        this.m_TuioManager.Connect();



        //check if the game object needs to be transformed in normalized 2d space
        if (isAttachedToGUIComponent())
        {
            Debug.LogWarning("Rotation of GUIText or GUITexture is not supported. Use a plane with a texture instead.");
            this.m_ControlsGUIElement = true;
        }

        this.m_IsVisible = false;
    }
예제 #8
0
    void Awake()
    {
        this.m_TuioManager = UniducialLibrary.TuioManager.Instance;
        TimeToWarn         = Countdown - WaitingTime;
        ResetTime          = Countdown;
        this.m_TuioManager.Connect();
        this.Manager = ManagerKlasse.Instance;
        Manager.SetTimer(this);
        Ausgabe.text = "";


        Cloud = new GameObject("Cloud");
        SpriteRenderer renderer = Cloud.AddComponent <SpriteRenderer>();
        GUITexture     te       = Cloud.AddComponent <GUITexture>();

        Cloud.GetComponent <SpriteRenderer>().sprite = Resources.Load("Cloud", typeof(Sprite)) as Sprite;
        Cloud.transform.position = new Vector3(Ausgabe.rectTransform.position.x, Ausgabe.rectTransform.position.y, AxeZ);
        //Ausgabe.rectTransform.position = new Vector3(0, 0, 0);
        Cloud.transform.localScale = new Vector3(width, height, 0);
        Cloud.SetActive(false);
    }
예제 #9
0
    void Awake()
    {
        this.m_TuioManager = UniducialLibrary.TuioManager.Instance;
        this.ms_Instance   = ApfelManager.Instance;

        //uncomment next line to set port explicitly (default is 3333)
        //m_TuioManager.TuioPort = 7777;

        this.m_TuioManager.Connect();
        PosY = this.transform.position.y;


        //check if the game object needs to be transformed in normalized 2d space
        if (isAttachedToGUIComponent())
        {
            Debug.LogWarning("Rotation of GUIText or GUITexture is not supported. Use a plane with a texture instead.");
            this.m_ControlsGUIElement = true;
        }

        this.m_ScreenPosition = Vector2.zero;
        this.m_WorldPosition  = Vector3.zero;
    }
예제 #10
0
    void Awake()
    {
        this.Manager = ManagerKlasse.Instance;

        this.m_TuioManager = UniducialLibrary.TuioManager.Instance;
        this.ms_Instance   = ApfelManager.Instance;
        //uncomment next line to set port explicitly (default is 3333)
        //m_TuioManager.TuioPort = 7777;

        this.m_TuioManager.Connect();



        //check if the game object needs to be transformed in normalized 2d space
        if (IsAttachedToGUIComponent())
        {
            Debug.LogWarning("Rotation of GUIText or GUITexture is not supported. Use a plane with a texture instead.");
            this.m_ControlsGUIElement = true;
        }

        this.m_Angle        = 0f;
        this.m_AngleDegrees = 0;
    }
예제 #11
0
    void Awake()
    {
        this.m_TuioManager = UniducialLibrary.TuioManager.Instance;

        //uncomment next line to set port explicitly (default is 3333)
        //tuioManager.TuioPort = 7777;

        this.m_TuioManager.Connect();

        //check if the game object needs to be transformed in normalized 2d space
        if (isAttachedToGUIComponent())
        {
            Debug.LogWarning("Rotation of GUIText or GUITexture is not supported. Use a plane with a texture instead.");
            this.m_ControlsGUIElement = true;
        }

        this.m_ScreenPosition = Vector2.zero;
        this.m_WorldPosition = Vector3.zero;
        this.m_Direction = Vector2.zero;
        this.m_Angle = 0f;
        this.m_AngleDegrees = 0;
        this.m_Speed = 0f;
        this.m_Acceleration = 0f;
        this.m_RotationSpeed = 0f;
        this.m_RotationAcceleration = 0f;
        this.m_IsVisible = true;
    }
    void Awake()
    {
        this.m_TuioManager = UniducialLibrary.TuioManager.Instance;
        this.m_TuioManager.Connect();

        this.m_ScreenPosition = Vector2.zero;
        this.m_WorldPosition = Vector3.zero;
        this.m_Direction = Vector2.zero;
        this.m_Angle = 0f;
        this.m_AngleDegrees = 0;
        this.m_Speed = 0f;
        this.m_Acceleration = 0f;
        this.m_RotationSpeed = 0f;
        this.m_RotationAcceleration = 0f;
        this.m_IsVisible = true;
    }