Ejemplo n.º 1
0
    void CollectFriend()
    {
        GameObject collectionObj = GameObject.Find("CollectionScript");

        if (collectionObj != null)
        {
            CityCollectionHandler collectHandler = collectionObj.GetComponent <CityCollectionHandler>();

            if (collectHandler != null)
            {
                collectHandler.CollectNewFriend();
            }
        }
    }
Ejemplo n.º 2
0
    bool IsCommuneFull()
    {
        bool full = false;

        GameObject collectionObj = GameObject.Find("CollectionScript");

        if (collectionObj != null)
        {
            CityCollectionHandler collectHandler = collectionObj.GetComponent <CityCollectionHandler>();

            if (collectHandler != null)
            {
                return(collectHandler.IsCommuneFull());
            }
        }

        return(full);
    }