예제 #1
0
파일: TankData.cs 프로젝트: AyyTee/Aventyr
        public TankData(long ownerId, Tank tank)
        {
            OwnerId = ownerId;
            ServerId = (int)tank.ServerId;
            Transform = tank.GetTransform();
            WorldTransform = tank.WorldTransform;
            Velocity = tank.GetVelocity();
            WorldVelocity = tank.WorldVelocity;
            TurretTransform = tank.Turret.GetTransform();
            TurretWorldTransform = tank.Turret.GetWorldTransform();

            GunFiredTime = tank.GunFiredTime;
        }