Ejemplo n.º 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.GetComponent <ObjInfo>() != null && other.GetComponent <ObjInfo>().Type == "Seed")
     {
         //player.GetComponent<PlayerControlConform>().FrontObj = other.gameObject;
         //if(other.GetComponent<ObjInfo>().Type=="Seed")
         //{
         //    player.GetComponent<NewPlayerController>().FrontObj = other.gameObject;
         //}
         p.FrontObj = other.gameObject;
         p.PickUp();
     }
     if (other.GetComponent <ObjInfo>() != null && other.GetComponent <ObjInfo>().Type == "Crystal")
     {
         p.FrontObj = other.gameObject;
         p.PickUp();
     }
     //if (other.tag == "Hole")
     //{
     //    p.FrontObj = other.gameObject;
     //}
 }