Replaced all code parts that cant be run in Unity.