冯乐乐的《Unity Shader入门精要》附带项目,其中部分shader已经修改测试
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
657 B

3 years ago
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ChariotModule{
public GameObject module;
public int mass;
public int life;
public int price;
public ChariotModule() {
this.mass = 1;
this.life = 100;
this.price = 100;
}
public ChariotModule(GameObject obj)
{
this.module = obj;
this.mass = 1;
this.life = 100;
this.price = 100;
}
public ChariotModule(GameObject obj, int mass, int life, int price) {
this.module = obj;
this.mass = mass;
this.life = life;
this.price = price;
}
}