Search Unity

Unable to get tutorial guided turret working.

Discussion in 'Scripting' started by Testnia, Jul 9, 2014.

  1. Testnia

    Testnia

    Joined:
    Jul 4, 2014
    Posts:
    11
    Hi, I have been following a tutorial on creating a tower defense game.

    However I ran into an issue in which the object I'm building (a turret), is not working as it should.

    In my case, the turret simply tilts to the side and not fire upon pressing play and remains there as shown in the image below.



    I have attached a file with the assets that I have used.
    This includes the "MissileCannon" as the turret, the "Missile" as the projectile and MissileTurret and Projectile_Missile scripts accordingly.

    Would greatly appreciate it if someone could help me pinpoint where have I gone wrong.
    Thanks!
     

    Attached Files:

  2. LeftyRighty

    LeftyRighty

    Joined:
    Nov 2, 2012
    Posts:
    5,148
    where did the mesh assets come from?