// Use this for initialization public void initialize(float x, float z, Quaternion nheading, BulletPool pool, Team.TeamEnum alignment = Team.TeamEnum.kEnemy) { bPool = pool; this.alignment = alignment; temp.Set(x, bullet_height, z); gameObject.transform.position = temp; gameObject.transform.rotation = nheading; velocity.Set(0.0f, 0.0f, bullet_speed); }
public Damage(int amount, Team.TeamEnum team, int recipient_hash) { this.amount = amount; this.team = team; this.recipient_hash = recipient_hash; }