Unity is saying : Assets/Scripts/PlayerController.cs(24,13): error CS1520: Class, struct, or interface method must have a return type.`using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class PlayerController : MonoBehaviour
{
public float speed;
%|-857845537_2|%
%|1164644380_3|%
public VirtJoystick joystick;
private Rigidbody rb;
%|-1566867663_6|%
void Start()
{
rb = GetComponent<Rigidbody>();
%|-1431496281_10|%
%|182078258_11|%
winText.text = “”;
%|75476248_13|%
private Vector3()
%|-1559446910_15|%
Vector3 dir = Vector3.zero;
// dir.x = Input.GetAxis("Horizontal");
%|-446951004_18|%
%|-425548609_19|%
%|-474847514_20|%
if (dir.magnitude > 1)
%|-1305225011_22|%
%|972089247_23|%
%|403106795_24|%
void OnTriggerEnter(Collider other)
{
if (other.gameObject.CompareTag("Pick Up"))
{
%|-729405921_29|%
%|-34778990_30|%
SetPuntiText();
}
%|-1848785492_33|%
%|-1774955043_34|%
%|-1019460246_35|%
%|1803505987_36|%
PuntiText.text = "Punti: " + Punti.ToString();
%|-1835466973_38|%
%|299714441_39|%
%|1659802984_40|%
%|-1299571644_41|%
%|-2046099202_42|%
}
`