2015-01-25 22:22:17 +00:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
using System.Collections;
|
2015-01-26 11:29:35 +00:00
|
|
|
|
using UnityEngine.UI;
|
2015-01-25 22:22:17 +00:00
|
|
|
|
|
2015-04-01 19:26:17 +00:00
|
|
|
|
public class Game_ManaItem : MonoBehaviour {
|
2015-01-25 22:22:17 +00:00
|
|
|
|
|
2015-01-26 11:29:35 +00:00
|
|
|
|
public Image manaImage;
|
|
|
|
|
|
2015-03-04 14:03:15 +00:00
|
|
|
|
void Start() {
|
2015-01-26 11:29:35 +00:00
|
|
|
|
//manaImage = GetComponent<Image> ();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2015-03-04 14:03:15 +00:00
|
|
|
|
public void setDisabled() {
|
2015-01-26 11:29:35 +00:00
|
|
|
|
manaImage.color = Color.red;
|
2015-03-04 14:03:15 +00:00
|
|
|
|
|
2015-01-26 11:29:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-03-04 14:03:15 +00:00
|
|
|
|
public void setEnabled() {
|
2015-01-26 11:29:35 +00:00
|
|
|
|
manaImage.color = Color.blue;
|
|
|
|
|
}
|
|
|
|
|
|
2015-03-04 14:03:15 +00:00
|
|
|
|
public void setSelected() {
|
2015-01-26 11:29:35 +00:00
|
|
|
|
manaImage.color = Color.white;
|
|
|
|
|
}
|
2015-01-25 22:22:17 +00:00
|
|
|
|
|
|
|
|
|
}
|