15 return base.gameObject.activeSelf;
22 this.SetActive(
false);
26 public void Initialize(
EloMap _elomap)
28 this.elomap = _elomap;
31 this.transMap = Util.Instantiate<Transform>(this.elomap.idMap,
null);
32 this.transLight = UnityEngine.Object.Instantiate<Transform>(this.moldLight);
34 this.transMap.SetActive(
false);
35 this.transLight.SetActive(
false);
36 EMono.scene.screenElona.SetUnitSize();
38 if (!this.elomap.initialized)
40 this.elomap.Init(
this);
42 STETilemap fogmap = this.elomap.fogmap;
43 this.transMap.position =
new Vector3((
float)(-(
float)fogmap.MinGridX) *
EMono.scene.screenElona.tileAlign.x +
EMono.scene.screenElona.actorPos.x, (
float)(-(
float)fogmap.MinGridY) *
EMono.scene.screenElona.tileAlign.y +
EMono.scene.screenElona.actorPos.y,
EMono.scene.screenElona.actorPos.z);
47 public void OnActivate()
49 this.transLight.SetActive(
true);
52 eloMapLight.sr.transform.position = TilemapUtils.GetGridWorldPos(this.elomap.fogmap, eloMapLight.gx, eloMapLight.gy);
55 this.elomap.objmap.UpdateMesh();
59 public void OnDeactivate()
63 this.transMap.SetActive(
false);
67 this.transLight.SetActive(
false);
72 public void OnChangeHour()
74 Color white = Color.white;
75 white.a =
EMono.scene.profile.light.orbitAlphaCurve.Evaluate(
EMono.scene.timeRatio);
79 eloMapLight.sr.color = white;
86 this.Initialize(
EMono.world.region.elomap);
91 public void OnKillGame()
93 this.SetActive(
false);
96 this.transLight.SetActive(
false);
97 this.transMap.SetActive(
false);
101 UnityEngine.Object.DestroyImmediate(this.transMap.gameObject);
102 UnityEngine.Object.DestroyImmediate(this.transLight.gameObject);
111 public Transform transMap;
114 public Transform transLight;
117 public Transform moldLight;
120 public Tileset tileset;
126 public List<EloMapLight> lights =
new List<EloMapLight>();