Added trigger system; fixed a bug in Script.cs