Exemple #1
0
    }//OnTriggerEnter2D

    public override void OnTriggerExit2D(Collider2D collision)
    {
        base.OnTriggerExit2D(collision);
        if (!HasExited)
        {
            return;
        }

        Imposter imp = this.tryCashImposter(collision.gameObject);

        if (imp == null)
        {
            return;
        }

        imp.SetShifter(null);
        bHasUsed            = false;
        this.IsMainTerminal = true;
        for (int i = 0; i < ShifterConnections.Count; i++)
        {
            if (ShifterConnections[i] == null)
            {
                continue;
            }

            ShifterConnections[i].IsMainTerminal = true;
        } //for
    }     //OnTriggerExit2D
Exemple #2
0
    }     //Start

    public override void OnTriggerEnter2D(Collider2D collision)
    {
        base.OnTriggerEnter2D(collision);
        if (!HasEntered)
        {
            return;
        }

        Imposter imp = this.tryCashImposter(collision.gameObject);

        if (imp == null)
        {
            return;
        }

        imp.SetShifter(this);
    }//OnTriggerEnter2D