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