public void Start()
    {
        myRadius = radius;

        radius = radius * sampleScaleFactor;
        myDemo = gameObject.GetComponent <DemoPresentation>();
    }
    void Start()
    {
        //if(!randomizeLoc)
        //    validateUpdate();
        myDemo = GameObject.FindGameObjectWithTag("Manager").GetComponent <DemoPresentation>(); // FOR PRESENTATION ONLY
        if (myDemo.customAgentloc)
        {
            goal = myDemo.customGoal;
        }
        myGlobalPlanner = GameObject.FindGameObjectWithTag("Manager").GetComponent <GlobalPlanner>();
        pathIndicator   = GameObject.FindGameObjectWithTag("PathIndicator");

        sparks = transform.GetChild(0).gameObject;

        myRenderer = gameObject.GetComponent <Renderer>();
        myColor    = new Color(UnityEngine.Random.Range(0.0f, 1.0f), UnityEngine.Random.Range(0.0f, 1.0f), UnityEngine.Random.Range(0.0f, 1.0f));
        myRenderer.material.SetColor("_Color", myColor);


        Renderer rend = pathIndicator.GetComponent <Renderer>();

        rend.material.SetColor("_Color", new Color(UnityEngine.Random.Range(0.0f, 1.0f), UnityEngine.Random.Range(0.0f, 1.0f), UnityEngine.Random.Range(0.0f, 1.0f)));


        myMotionScript = gameObject.GetComponent <PowerLaw>();

        prePos     = transform.position;
        timer      = Time.time;
        astarTimer = Time.time;
        initializePath(start, goal);


        //path = updateSkipPath();
    }
 private DemoPresentation myDemo;  // FOR PRESENTATION ONLY
 private void Start()
 {
     myDemo         = GameObject.FindGameObjectWithTag("Manager").GetComponent <DemoPresentation>(); // FOR PRESENTATION ONLY
     cam            = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>();
     mySpawnChooser = GameObject.FindGameObjectWithTag("Manager").GetComponent <SpawnChooser>();
     highlight      = GameObject.FindGameObjectWithTag("Highlight");
     grid           = gameObject.GetComponent <PlacementGrid>();
 }
 private void Awake()
 {
     myDemo = gameObject.GetComponent <DemoPresentation>();
     distCalc();
     computeGrid();
 }