akadoc/Assets/scripts/Gui_ChatScrollbar.cs

43 lines
648 B
C#
Raw Normal View History

using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityEngine.EventSystems;
2015-04-01 19:26:17 +00:00
public class Gui_ChatScrollbar : MonoBehaviour {
public Scrollbar scrollbar;
public InputField myfield;
public ScrollRect scrollrect;
2015-03-04 14:03:15 +00:00
// Use this for initialization
2015-03-04 14:03:15 +00:00
void Start() {
scrollbar.value = 1;
}
2015-03-04 14:03:15 +00:00
// Update is called once per frame
2015-03-04 14:03:15 +00:00
void Update() {
//print (iseditingtop);
}
2015-03-04 14:03:15 +00:00
bool isTypingText() {
if(Input.anyKey && Input.GetMouseButton(0) == false && Input.GetMouseButton(1) == false && Input.GetMouseButton(2) == false && Input.GetKey("return") == false) {
return true;
} else
return false;
}
}