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
|
|
|
|
|
|
|
|
|
public class ManaItem : MonoBehaviour {
|
|
|
|
|
|
2015-01-26 11:29:35 +00:00
|
|
|
|
public Image manaImage;
|
|
|
|
|
|
|
|
|
|
void Start () {
|
|
|
|
|
//manaImage = GetComponent<Image> ();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setDisabled(){
|
|
|
|
|
manaImage.color = Color.red;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setEnabled(){
|
|
|
|
|
manaImage.color = Color.blue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSelected(){
|
|
|
|
|
manaImage.color = Color.white;
|
|
|
|
|
}
|
2015-01-25 22:22:17 +00:00
|
|
|
|
|
|
|
|
|
}
|