Ejemplo n.º 1
0
 public SnowPlayerHitCheckSystem(Entity player, float damageRatio, UniRx.ReactiveProperty <uint> killScore, float radius, NativeMultiHashMap <int, DecidePositionHashCodeSystem.Tuple> snowHashCodes, NativeMultiHashMap <int, DecidePositionHashCodeSystem.Tuple> playerBulletHashCodes, HashSet <int> snowBulletPositionHashSet, Action playSoundEffect)
 {
     this.rangeSquared              = radius * radius;
     this.damageRatio               = damageRatio;
     this.killScore                 = killScore;
     this.player                    = player;
     this.playSoundEffect           = playSoundEffect;
     this.snowHashCodes             = snowHashCodes;
     this.playerBulletHashCodes     = playerBulletHashCodes;
     this.snowBulletPositionHashSet = snowBulletPositionHashSet;
 }
Ejemplo n.º 2
0
        public void FetchText(UniRx.ReactiveProperty <string> text)
        {
            var g         = gObject;
            var textInput = g.asTextInput;

            if (textInput != null)
            {
                textInput.onChanged.Add((evt) =>
                {
                    var sender      = evt.sender as FairyGUI.GTextInput;
                    sender.editable = false;
                    text.Value      = sender.text;
                    sender.editable = true;
                });
            }
        }