示例#1
0
 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;
     }
 }
示例#2
0
 void Start()
 {
     status = MoundStatus.unplanted;
 }