public float fixedScale; //set in PlayerEditor.StartDelete public NameBox(Slot slot) { this.slot = slot; base.Init(slot.player); contentContainer.AddChild(nameLabel = new FLabel("Raleway", slot.player.name)); nameLabel.color = Color.black; nameLabel.anchorX = 0.0f; contentContainer.AddChild(_cursor = new NameBoxCursor()); _cursor.alpha = 0; slot.player.SignalNameChange += HandleNameChange; HandleNameChange(); ListenForUpdate(HandleUpdate); }
public NameBox(Slot slot) { this.slot = slot; base.Init(slot.player); contentContainer.AddChild(nameLabel = new FLabel("Raleway",slot.player.name)); nameLabel.color = Color.black; nameLabel.anchorX = 0.0f; contentContainer.AddChild(_cursor = new NameBoxCursor()); _cursor.alpha = 0; slot.player.SignalNameChange += HandleNameChange; HandleNameChange(); ListenForUpdate(HandleUpdate); }