void OnTriggerExit2D(Collider2D other) { if (other.gameObject.tag == "Player") { if (other.transform.position.y > this.transform.position.y) { Destroy(this.GetComponent <Collider2D>()); GameObject.FindGameObjectWithTag("Player").SendMessage("successJump", this.gameObject); type = PipeLineType.simple; } } }
public Pipeline(string name, PipeLineType type) { modules = new List <IPipeLineModule>(); this.name = name; this.type = type; }