示例#1
0
 public void OnDestroyPlant(GameObject obj)
 {
     if (this.m_GrownPlant && SaveGame.m_State == SaveGame.State.None && !this.m_ForceNoRespawn)
     {
         AcreRespawnFruits component = this.m_GrownPlant.GetComponent <AcreRespawnFruits>();
         if (component && this.m_ItemId != ItemID.Cocona_Seeds)
         {
             component.OnDestroyPlant();
         }
     }
     this.m_ForceNoRespawn = false;
     if (this.m_GrownPlant == obj)
     {
         this.SetState(AcreState.NotReady);
     }
 }