private void Start()
    {
        //Instantiate interface
        if (PlayerInterfaceUIPrefab != null)
        {
            playerInterfaceUI = Instantiate(PlayerInterfaceUIPrefab);
            playerInterfaceUI.Initialize(this);
        }


        //Register player on gameManager
        GameManager.Instance.photonView.RPC("CmdRegisterPlayer", RpcTarget.All,
                                            PhotonNetwork.LocalPlayer.ActorNumber,
                                            photonView.ViewID
                                            );

        //Setup movement
        dashDirection = input.faceDirection;

        //Set camera follow
        cameraFollow.Initialize(this);

        //Instantiate Controls
        if (PlayerInputUIPrefab != null)
        {
            if (SystemInfo.operatingSystem.Contains("Android") || SystemInfo.operatingSystem.Contains("iPhone"))
            {
                PlayerControlUI inputUiGo = Instantiate(PlayerInputUIPrefab);
                input.Initialize(inputUiGo.GetComponent <PlayerControlUI>());
            }
        }
        else
        {
            Debug.LogWarning("<Color=Red><a>Missing</a></Color> PlayerInputUIPrefab reference on player Prefab.", this);
        }

        //Instantiate SoundManager
        //if (SoundManagerPrefab != null)  //[HERE]
        //{
        //    SoundManager soundManager = Instantiate(SoundManagerPrefab);
        SoundManager.sharedInstance.Initialize(this);
        //}
        //else
        //{
        //    Debug.LogWarning("<Color=Red><a>Missing</a></Color> PlayerInputUIPrefab reference on player Prefab.", this);
        //}
    }
 public void Initialize(PlayerControlUI playerControlUi)
 {
     joystick = playerControlUi.joystick;
     playerControlUi.dashButton.onClick.AddListener(this.Dash_MobileInput);
     playerControlUi.superDashButton.onClick.AddListener(this.SuperDash_MobileInput);
 }