예제 #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);
     }
 }