Ejemplo n.º 1
0
 public void Initialize(UnityFactory Factory, GuiInformation ginfo, bool isNotMainPlayer)
 {
     this.Factory         = Factory;
     this.ginfo           = ginfo;
     this.isNotMainPlayer = isNotMainPlayer;
     ginfo.Player.Register(new Trigger <PlayerGainedXPEvent>(OnXPGain));
     xpscaler  = this.ginfo.XPBar.GetComponent <GUITextureAutoScaler>();
     initwidth = xpscaler.CurPlacement.width;
     CheckXp();
 }
Ejemplo n.º 2
0
 public void Initialize(UnityFactory Factory, GuiInformation ginfo, bool isNotMainPlayer)
 {
     this.Factory = Factory;
     this.ginfo = ginfo;
     this.isNotMainPlayer = isNotMainPlayer;
     ginfo.Player.Register(new Trigger<PlayerGainedXPEvent>(OnXPGain));
     xpscaler = this.ginfo.XPBar.GetComponent<GUITextureAutoScaler>();
     initwidth = xpscaler.CurPlacement.width;
     CheckXp();
 }