Bridge.use C# (CSharp) Method

use() public method

Allows using of a bridge to activate traps
public use ( ) : bool
return bool
    public override bool use()
    {
        if (UseLink!="")
        {
            GameObject obj = GameObject.Find (UseLink);
            if (obj!=null)
            {
                if (obj.GetComponent<trigger_base>()!=null)
                {
                    return obj.GetComponent<trigger_base>().Activate();
                }
            }
        }
        return false;
    }