Another Error 1502 and Error 1503

I can’t figure out how to get this error to go away.

using System.Collections.Generic;
using UnityEngine;

public class firing : MonoBehaviour {

Transform firePos;
public GameObject left, right, up, down;
// Use this for initialization
void Start () {
	firePos = transform.Find ("firePos");


// Update is called once per frame
void Update () 
	if (Input.GetButtonDown (KeyCode.Space)) {
		Fire ();
void Fire()
	Instantiate (left, firePos.position, Quaternion.identity);	


Input.GetButtonDown(string buttonName) method expects the button name as string. From your code it seems like you want to check for space key. In that case you need to use Input.GetKeyDown(KeyCode key) method. This should change your line to:

if (Input.GetKeyDown (KeyCode.Space)) {

can you help me with this …Assets/Scripts/PlayerControler.cs(13,5): error CS1520: Class, struct, or interface method must have a return type
i dont know what to do i am a beginner . please help me