Example #1
0
        public override bool SetParams(int uid, string profileID, object[] args)
        {
            base.SetParams(uid, profileID, args);

            if (args.Length != 2)
            {
                return(false);
            }

            var a   = args[0] as ParticleInfo;
            var pos = (args[1] as Nullable <Vector2>).Value;

            _a   = a;
            _pos = pos;

            throw new System.NotImplementedException();
        }
Example #2
0
        public override bool SetParams(int uid, string profileID, object[] args)
        {
            base.SetParams(uid, profileID, args);

            if (args.Length != 2)
            {
                return(false);
            }

            _a = args[0] as ParticleInfo;
            _b = args[1] as ParticleInfo;

            _aUID = _a.uid;
            _bUID = _b.uid;

            _stiffness = 1f;

            return(true);
        }
Example #3
0
 public override void AfterImportJson(EditableForm form)
 {
     _a = form.GetByUID(_aUID) as ParticleInfo;
     _b = form.GetByUID(_bUID) as ParticleInfo;
 }