I have a flower that spawns a prefab seed, and the seed is suppose to spawn the flower of the same type of which its came from. Now from my flower script this is what I wrote:
private GameObject clone;
clone = (GameObject)Instantiate (Resources.Load("Seed"), transform.position + new Vector3(0, 1), Quaternion.identity);
clone.GetComponent(Seed)().flower = this.gameObject; <----- :(
Now how come the flower gameobject variable is not assigning to the gameObject in which it came from?