Beispiel #1
0
 void Start()
 {
     this.Manager = ManagerKlasse.Instance;
     this.Hide();
     Ausgabe.rectTransform.sizeDelta = new Vector2(125, 65);
     animal.SetSpeaker(this);
 }
Beispiel #2
0
 public ManagerKlasse()
 {
     if (Manager != null)
     {
         Debug.LogError("Trying to create two instances of singleton.");
         return;
     }
     Manager = this;
 }
Beispiel #3
0
 /// <summary>
 ///  Constructor
 /// </summary>
 public ApfelManager()
 {
     if (Ms_Instance != null)
     {
         Debug.LogError("Trying to create two instances of singleton.");
         return;
     }
     Ms_Instance  = this;
     this.Manager = ManagerKlasse.Instance;
 }
Beispiel #4
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);
    }
    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;
    }
Beispiel #6
0
 void Start()
 {
     this.Manager = ManagerKlasse.Instance;
     baloon.GetComponent <Renderer>().enabled = false;
 }
Beispiel #7
0
 void Start()
 {
     this.Manager = ManagerKlasse.Instance;
     Manager.SetBasket(this);
     this.UpdateBasket(Manager.NutCounter);
 }
Beispiel #8
0
 void Start()
 {
     this.Manager = ManagerKlasse.Instance;
     this.namenut = this.gameObject.name;
     this.Manager.AddNut(this);
 }
 void Awake()
 {
     this.Manager = ManagerKlasse.Instance;
 }
Beispiel #10
0
 void Start()
 {
     this.Manager = ManagerKlasse.Instance;
 }