public bool TryGetVariable(string name, out SharedVariable variable) { variable = null; if (!behaviour) { return(false); } return(behaviour.TryGetVariable(name, out variable)); }