please can anyone tell me what is the wrong in this code
using UnityEngine;
using System.Collections;
public class EnableComponents : MonoBehaviour {
void example() {
if(Input.GetMouseButtonDown("Fire1"))
{
particleSystem.emissionRate = 1;
}
else {
particleSystem.emissionRate = 0;
}
}
}
Assets/EnableComponents.cs(11,26): error CS1502: The best overloaded method match for `UnityEngine.Input.GetMouseButtonDown(int)' has some invalid arguments
Assets/EnableComponents.cs(11,26): error CS1503: Argument `#1' cannot convert `string' expression to type `int'
↧