Exemplo n.º 1
0
    // Take a seed collection and distrubute it among the reapable scripts attached to this GO
    public void Sow(SeedCollection collection)
    {
        IReapable[] holes = GetComponents <IReapable> ();
        if (holes.Length <= 0)
        {
            Console.println(ToString() + " has nowhere to sow values", Console.Tag.info);
        }
        else
        {
            Console.println(ToString() + " sowed values.", Console.Tag.info);
        }

        //intercept and save prefabPath
        prefabPath = collection.prefabPath;
        prefabName = collection.prefabName;

        collection.SowSeeds(gameObject, holes);
    }