Exemple #1
0
    private ItemInfo getColliderObjectItemInfo(Collider other)
    {
        ItemInfoScript infoS = (ItemInfoScript)other.gameObject.GetComponent(typeof(ItemInfoScript));

        return(infoS.getItemInfo());
    }
Exemple #2
0
    private ItemInfo getItemInfo(GameObject item)
    {
        ItemInfoScript s = (ItemInfoScript)item.GetComponent <ItemInfoScript> ();

        return(s.getItemInfo());
    }