Exemplo n.º 1
0
    protected void Start()
    {
        TrapIn[] traps = FindObjectsOfType <TrapIn>();

        foreach (TrapIn trap in traps)
        {
            if (!trap.Paired)
            {
                trapIn = trap;
                Paired = true;
                trapIn.SetOut(this);
                break;
            }
        }
    }
Exemplo n.º 2
0
 public void SetIn(TrapIn trapIn)
 {
     this.trapIn = trapIn;
     Paired      = true;
 }