using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Bird : MonoBehaviour
{
void Start()
{
GetComponent
}
// Update is called once per frame
void Update()
{
}
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Bird : MonoBehaviour
{
void Start()
{
GetComponent
}
// Update is called once per frame
void Update()
{
}
}
please help me
Is this from a tutorial? If it is, continue with the tutorial for a bit. The code you posted is simply missing any possible useful functionality.
For your reference, how to report your problem productively in the Unity3D forums:
How to understand compiler and other errors and even fix them yourself:
https://discussions.unity.com/t/824586/8
If you post a code snippet, ALWAYS USE CODE TAGS:
How to use code tags: https://discussions.unity.com/t/481379
sorry i am new
Your GetComponent is incomplete. You’re getting the component, but not doing anything with it, nor storing the reference. So you might as well just delete that line unless you actually had plans for it. But the compile error has to do with you not ending the line. You need to add (); after what you wrote there.
Building more on what Uncle Joe says, 100% of spelling, capitalization, spacing and punctuation has to be present and PERFECT.
If you get all the characters in a file right except for one lousy character wrong, generally the entire game simply DOES NOT WORK.
That’s why it’s important to understand how to fix compiler errors. See my link above.
The compiler is your best friend. Learn how to accept his guidance to help you write your program.
I mean, alright, but I was more looking for answer to those questions than an apology. We still don’t have enough information to be able to help you.