コード例 #1
0
        public override cForce copy()
        {
            KnockbackForce bs = new KnockbackForce(new cVector3());

            bs.copy(this);
            return(bs);
        }
コード例 #2
0
        public override void copy(cForce pforce)
        {
            base.copy(pforce);
            if (!pforce.IsKindOf("KnockbackForce"))
            {
                return;
            }
            KnockbackForce pforcechild = (KnockbackForce)pforce;

            //copy fields here
            forceVector.copy(pforcechild.forceVector);
            count = pforcechild.count;
        }