void OnTriggerStay(Collider Other) { // Debug.Log ("I AM " + Other.gameObject.name); if (Other.gameObject.name.Contains( "Seed")&&status==MoundStatus.unplanted) { GameObject.Destroy(Other.gameObject); GameObject newplant; newplant= (GameObject)Instantiate (growth, new Vector3(transform.position.x, transform.position.y+displacement,transform.position.z), transform.rotation ); Debug.Log("NICO NICO F**K YOU"); status= MoundStatus.planted; //newplant.transform.position= transform.position; } }
void Start() { status = MoundStatus.unplanted; }