示例#1
0
 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;
         }
     }
 }
示例#2
0
 public Pipeline(string name, PipeLineType type)
 {
     modules   = new List <IPipeLineModule>();
     this.name = name;
     this.type = type;
 }