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.
28 lines
657 B
28 lines
657 B
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; |
|
} |
|
}
|
|
|