void Start()
 {
     BountError    = BountyError.NoError;
     bountySize    = GameObject.Find("BountySpotlight");
     heroSpawn     = GameObject.Find("HeroController").GetComponent <HeroSpawner>();
     mymainmoney   = GameObject.Find("GUIIncometab").GetComponent <MainMoney> ();
     spawnPointpos = gameObject.transform.position;
     spawnPointRot = gameObject.transform.rotation;
     buildingloc   = GameObject.Find("BuildingManager").GetComponent <BuildingLocation> ();
     maxxz         = heroSpawn.HowFarCanIGo(1);
     MaxX          = maxxz [0];
     MaxZ          = maxxz [1];
 }
Example #2
0
    void Start()
    {
        this.GetComponent <FogOfWar> ().Unfog(new Vector3(0, 0, 0), 1000, 0);

        this.GetComponent <FogOfWar>().Unfog(new Rect(new Vector2(0.0f, 5.0f), new Vector2(100f, 100f)));
        heroSpawner = GameObject.Find("HeroController");
        heroSpawn   = heroSpawner.GetComponent <HeroSpawner>();
        Speed       = 0.9f;

        maxxz = heroSpawn.HowFarCanIGo(1);
//		MaxX = maxxz [0];
        //	MaxZ = maxxz [1];
        MaxX     = 200.0f;
        MaxZ     = 600.0f;
        myroiate = transform.rotation;
    }