void Start() { inputMapping = new InputMapping(); levelsAttributes = new LevelsAttributes(); sceneID = LevelsAttributes.currentLevelId; #if UNITY_ANDROID inputMapping.idController = "Android"; instantiatePlayer(sceneID, PlayerCharacter.GHOST, levelsAttributes.getInitialPositionFromID(sceneID), inputMapping.idController, getKeysBasedOnController(inputMapping.idController)); CustomGUI gui = GameObject.Find("CustomGUI").GetComponent <CustomGUI>(); gui.initializeButtonsAndroid(); #endif #if UNITY_STANDALONE_WIN || UNITY_WEBPLAYER string idController = inputMapping.idController; instantiatePlayer(sceneID, PlayerCharacter.GHOST, levelsAttributes.getInitialPositionFromID(sceneID), idController, getKeysBasedOnController(idController)); #endif SizeFixer sizeFixer = new SizeFixer(); namePlayer = sizeFixer.getRectFixResolution(1900, 20, 300, 200); coinsRect = sizeFixer.getRectFixResolution(1600, 20, 100, 50); nameStyle = new GUIStyle(); nameStyle.fontSize = 17; }