// Start is called before the first frame update void Start() { MapBehavior map = GameObject.Find("MapController").GetComponent <MapBehavior>(); gc = GameObject.Find("GameController").GetComponent <GameController>(); int size = map.GetMapSize(); Vector3 zoneScale = new Vector3(size / 5, size / 5, 1); zoneImage = GetComponent <SpriteRenderer>(); transform.localScale = zoneScale; map.zonePos = transform.position; map.zoneRadius = transform.localScale.x * 1.5f; StartCoroutine("Fade"); StartCoroutine("IsUnitInCircle"); }
// Start is called before the first frame update void Start() { mapBehavior = mapController.GetComponent <MapBehavior>(); cam = GetComponent <Camera>(); StartCoroutine(StartPos()); }
void Start() { mb = GameObject.Find("MapController").GetComponent <MapBehavior>(); gc = GameObject.Find("GameController").GetComponent <GameController>(); }
// Use this for initialization void Start() { globals = Camera.main.GetComponent<Globals> (); map = GameObject.FindGameObjectWithTag ("Map").GetComponent<MapBehavior> (); }