Search Unity

coding problem

Discussion in 'Scripting' started by ZimonIsHim, Apr 25, 2015.

  1. ZimonIsHim

    ZimonIsHim

    Joined:
    Apr 18, 2015
    Posts:
    7
    var Text : GameObject;
    var thing : GameObject = true;

    function CREDITSfunction () {
    if thing.SetActiveRecursively(true) = true;
    }
    Text.SetActiveRecursively(true);
    thing.SetActiveRecursively(true) = false;
    {
    else
    }
    Text.SetActiveRecursively(false);
    thing.SetActiveRecursively = true;
    {
    }

    can someone make it work please?
     
  2. Fluzing

    Fluzing

    Joined:
    Apr 5, 2013
    Posts:
    815
    Almost everything in this code is wrong. You should do some tutorials first before attempting to code.