current object must be active

current object must be active
gameobject.event obsolete,
gameobject.events is used instead