public projectileInfo(projectileInfo info) { this.objType = info.objType; this.dmg = info.dmg; this.speed = info.speed; this.direction = info.direction; this.timeAlive = info.timeAlive; }
private void Start() { //bulletControl = Resources.Load("Prefabs/Bullet") as GameObject; // Default values, may be removed later ballistaProjectiles = new projectileInfo(); ballistaProjectiles.objType = new GameObject("Bullet"); ballistaProjectiles.dmg = 1; ballistaProjectiles.speed = new Vector2(1, 1); ballistaProjectiles.direction = new Vector2(rot.x, rot.y); ballistaProjectiles.timeAlive = 20; ballistaProjectiles.max_hp = 1; }