Added init  func to gameobject proto