Question by
SammyRamp_ · Jan 10, 2016 at 05:50 AM ·
scripting problem
i'm getting error CS1014 when putting a C# scripting into something.
current code: using UnityEngine; using System.Collections;
public class input : MonoBehaviour {
public static Vector2 getmouseposition()
{
return input.mouseposition;
}
// Update is called once per frame
void Update ()
{
if.(input.getmousebuttondown(0))
{
vector2 position = getmouseposition();
}
} }
Comment
you need to format ALL of your code and include the complete error message.
Answer by ClearRoseOfWar · Jan 10, 2016 at 06:02 AM
Without an error message, I can only guess this: GetMouseButtonDown
Your answer
![](https://koobas.hobune.stream/wayback/20220612055345im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Help: Load next level 7 seconds after pick up count reaches 80 3 Answers
Trying to restrict movement to bounds of screen using MathF.Clamp() 2 Answers
Scene/Level changing problems 1 Answer
Why Collider2D size Y changes affects child object position 0 Answers
2D Projectile Script Not Working 1 Answer