请注意:这个仓库使用Git-lfs 请先Fork 然后在 Clone 不然我的lfs 流量会被用完的!!!
Note:This repository is using Git-lfs. Please fork the repository before cloning.Otherwise,my persional bandwidth will be used up!
Synopsis
An open source tank game made by Unity3D game engine.
Panzer War used to be a commercial mobile tank combat game. However,the developer won't have much time to work on it.So the online servers are stopped,and the game become an open source one.
Installation
Clone
- Install git large file storage Download git-lfs
- Fork to your repository and clone from your repository!
Then open the project with Unity3D (Unity 2017.x)
Build AssetBundles
- Open menu Tools/ShanghaiWindy/Build/SceneBuilder .
- Switch platform to your building target.
- Click Relaod Cooked Scene Data.
- Click Label Assets .
- Click Build Sub-Assets.
Then you can run the game from scene "StartUp"
Reference
Wiki
WIKI Page on GitHub : View it
Tutorials
1.Vehicle Configures in Unity3D Videos on YouTube or Bilibili
Demo Codes
Instantiate existing vehicle.
Code
using UnityEngine;
public class illustration : MonoBehaviour {
void Start () {
GameDataManager.OfflineMode = true; // Use offline
GameObject newVehicle = new GameObject("Vehicle");
TankInitSystem initSystem = newVehicle.AddComponent<TankInitSystem>(); // Add vehicle init system
initSystem.VehicleName = "T-44"; //Set vehicle name
initSystem._InstanceNetType = InstanceNetType.GameNetWorkOffline; // Switch vehicle to offline mode
initSystem.BulletCountList = new int[3]{ //Set Bullet counts
35,15,5
};
initSystem.InitTankInitSystem(); // Load all data
}
}