Пример #1
0
    public void SetStampBasedOnLocation(int stampindex, YellOnClaim.Location loc)//old?
    {
        List <GameObject> Stamp = GetStamp(stampindex);

        Stamp[1].SetActive(true);
        Stamp[0].GetComponent <SpriteRenderer>().sprite = myYellOnClaim.gameObject.GetComponent <DictionariesForThings>().Location2ResourceObject[loc].GetComponent <SpriteRenderer>().sprite;
        Stamp[0].SetActive(true);
        //might have to instantiate
    }
Пример #2
0
 public GameObject GetResourceFromLocation(YellOnClaim.Location loc)
 {
     if (Location2ResourceObject.ContainsKey(loc))
     {
         return(Location2ResourceObject[loc]);
     }
     else
     {
         return(null);
     }
 }