Inheritance: MonoBehaviour
Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     Logger.Log("start potion " + _potionID, Logger.Level.TRACE);
     if (potionDisplayer == null)
     {
         potionDisplayer = transform.parent.GetComponent <PotionsDisplayer>() as PotionsDisplayer;
     }
     _imageButton = gameObject.GetComponent <UIImageButton>() as UIImageButton;
     _uri         = getRandomSprite();
     setSprite(_uri);
 }
Exemplo n.º 2
0
	// Use this for initialization
	void Start () {
		Logger.Log("start potion "+_potionID, Logger.Level.TRACE);
    if(potionDisplayer==null){
      potionDisplayer = transform.parent.GetComponent<PotionsDisplayer>() as PotionsDisplayer;
    }
		_imageButton = gameObject.GetComponent<UIImageButton>() as UIImageButton;
		_uri = getRandomSprite();
		setSprite(_uri);
	}