// Token: 0x06000187 RID: 391 RVA: 0x00012200 File Offset: 0x00010400 public virtual void Start() { if (this.type == progressType.Auto) { this.player = GameObject.FindWithTag("Player"); QuestStat exists = (QuestStat)this.player.GetComponent(typeof(QuestStat)); if (exists) { ((QuestStat)this.player.GetComponent(typeof(QuestStat))).Progress(this.questId); } } }
// Token: 0x06000188 RID: 392 RVA: 0x00012278 File Offset: 0x00010478 public virtual void OnTriggerEnter(Collider other) { if (other.tag == "Player" && this.type == progressType.Trigger) { QuestStat exists = (QuestStat)other.GetComponent(typeof(QuestStat)); if (exists) { bool flag = ((QuestStat)other.GetComponent(typeof(QuestStat))).Progress(this.questId); if (flag) { UnityEngine.Object.Destroy(this.gameObject); } } } }
// Token: 0x060001A3 RID: 419 RVA: 0x000132CC File Offset: 0x000114CC public virtual void Deactivate() { this.player = GameObject.FindWithTag("Player"); if (this.player) { QuestStat exists = (QuestStat)this.player.GetComponent(typeof(QuestStat)); if (exists) { bool flag = ((QuestStat)this.player.GetComponent(typeof(QuestStat))).CheckQuestSlot(this.questId); int num = ((QuestStat)this.player.GetComponent(typeof(QuestStat))).CheckQuestProgress(this.questId); if (flag && num >= this.progressAbove && num < this.progressBelow) { this.spawnObject.SetActive(false); } } } }
// Token: 0x060001A4 RID: 420 RVA: 0x00013398 File Offset: 0x00011598 public virtual void DeleteObj() { this.player = GameObject.FindWithTag("Player"); if (this.player) { QuestStat exists = (QuestStat)this.player.GetComponent(typeof(QuestStat)); if (exists) { bool flag = ((QuestStat)this.player.GetComponent(typeof(QuestStat))).CheckQuestSlot(this.questId); int num = ((QuestStat)this.player.GetComponent(typeof(QuestStat))).CheckQuestProgress(this.questId); if (flag && num >= this.progressAbove && num < this.progressBelow) { UnityEngine.Object.Destroy(this.spawnObject); } } } }
// Token: 0x060001A1 RID: 417 RVA: 0x00013110 File Offset: 0x00011310 public virtual void Spawn() { this.player = GameObject.FindWithTag("Player"); if (this.player) { QuestStat exists = (QuestStat)this.player.GetComponent(typeof(QuestStat)); if (exists) { bool flag = ((QuestStat)this.player.GetComponent(typeof(QuestStat))).CheckQuestSlot(this.questId); int num = ((QuestStat)this.player.GetComponent(typeof(QuestStat))).CheckQuestProgress(this.questId); if (flag && num >= this.progressAbove && num < this.progressBelow) { GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.spawnObject, this.transform.position, this.transform.rotation); gameObject.name = this.spawnObject.name; } } } }