Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

zombie survival script problam

Discussion in 'Editor & General Support' started by elyakim, Nov 17, 2014.

  1. elyakim

    elyakim

    Joined:
    Nov 17, 2014
    Posts:
    3
    hi im just started the survival project and the bunny dont follow the player the error:
    NullReferenceException: Object reference not set to an instance of an object
    EnemyMovement.Awake () (at Assets/Scripts/Enemy/EnemyMovement.cs:14)
     
  2. drewradley

    drewradley

    Joined:
    Sep 22, 2010
    Posts:
    3,063
    It's looking for something in EnemyMovement.cs at line 14 and not finding it. Without knowing what line 14 is, I have no idea what it is.
     
  3. elyakim

    elyakim

    Joined:
    Nov 17, 2014
    Posts:
    3
    It line 15 the code to find the player sorry
     
  4. elyakim

    elyakim

    Joined:
    Nov 17, 2014
    Posts:
    3
    Line 15 sorry it the code to find player or something