Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

I am missing a } somewhere but I don't know where

Discussion in 'Scripting' started by masterbuilder335, Apr 8, 2021.

  1. masterbuilder335

    masterbuilder335

    Joined:
    Jan 14, 2021
    Posts:
    55
    Code (CSharp):
    1.   if (tPressed);
    2.         {
    3.             animator.SetBool(IsTalkingHash, true);
    4.         }
    5.         else
    6.         {
    7.             animator.SetBool(IsTalkingHash, false);
    8.         }
     
  2. masterbuilder335

    masterbuilder335

    Joined:
    Jan 14, 2021
    Posts:
    55
    it says I am missing it on line 4?
     
  3. BaBiAGameStudio

    BaBiAGameStudio

    Joined:
    Mar 31, 2020
    Posts:
    76
    Get rid of the ; from this line.
     
  4. masterbuilder335

    masterbuilder335

    Joined:
    Jan 14, 2021
    Posts:
    55
unityunity