// Update is called once per frame
 void Start()
 {
     this.InstantiatePlayer();
     this.InstantiateAirfieldQueue();
     this.InstantiateMapObjectiveQueue();
     this.mapMaterial = Instantiate(groundRenderer.sharedMaterial);
     groundRenderer.sharedMaterial = this.mapMaterial;
     WTEvents.RegisterEventHandler(WTEvent.Type.mapImageChange, UpdateMapTexture);
     WTEvents.RegisterEventHandler(WTEvent.Type.mapObjectsChange, this.HandleMapObjectStateChange);
     WTEvents.RegisterEventHandler(WTEvent.Type.gameLoad, this.InstantiateAirfieldQueue);
 }
Ejemplo n.º 2
0
 void Start()
 {
     WTEvents.RegisterEventHandler(WTEvent.Type.indicatorsStateChange, this.HandleIndicatorsChange);
 }