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(); //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; }
/// <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; }
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; }
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; }
void Start() { this.ms_Instance = ApfelManager.Instance; this.ms_Instance.AddApple(this); //Füge Apfel dem Apfel-Array im Manager hinzu }