예제 #1
0
		protected override void ValidateClone()
		{
			base.ValidateClone();
			if (rigidbody != null) rigidbody = (Rigidbody)rigidbody.GetClone(timeStamp);
			collisions = Util.CloneKDVC(collisions, timeStamp);
			prevCollisions = Util.CloneKDVC(prevCollisions, timeStamp);
			triggers = Util.Clone(triggers, timeStamp);
			prevTriggers = Util.Clone(prevTriggers, timeStamp);
		}
예제 #2
0
 protected override void ValidateClone()
 {
     base.ValidateClone();
     _transform = (Transform)_transform.GetClone(timeStamp);
     if (_collider != null)
     {
         _collider = (Collider)_collider.GetClone(timeStamp);
     }
     if (_rigidbody != null)
     {
         _rigidbody = (Rigidbody)_rigidbody.GetClone(timeStamp);
     }
     components  = Util.Clone <Component>(components, timeStamp);
     behaviours  = Util.Clone <Behaviour>(behaviours, timeStamp);
     __colliders = Util.Clone <Collider>(__colliders, timeStamp);
     _colliders  = Util.Clone <Collider>(_colliders, timeStamp);
     name        = (string)name.Clone();
 }