Fix use of obselete Unity interfaces