Steam lobby implemented

This commit is contained in:
Madhav Kapa
2023-06-01 08:03:48 -07:00
parent c7647c8097
commit 49efee80e2
95 changed files with 10258 additions and 6167 deletions

View File

@ -1,42 +1,33 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.VFX;
public class VectorFieldHandler : MonoBehaviour
{
[SerializeField]
private float avoidanceDist;
[SerializeField]
private List<Vector3> avoidances;
[SerializeField]
private Vector3 size;
[SerializeField] private float avoidanceDist;
[SerializeField] private List<Vector3> avoidances;
[SerializeField] private Vector3 size;
[SerializeField] private VisualEffect effect;
private Texture3D vField;
[SerializeField]
private VisualEffect effect;
// Start is called before the first frame update
void Start()
private void Start()
{
vField = new Texture3D((int)size.x, (int)size.y, (int)size.z, TextureFormat.RFloat, 0);
for(int x = 0;x<size.x;x++)
{
for(int y = 0; y < size.y; y++)
{
for(int z = 0; z<size.z; z++)
{
vField.SetPixel(x, y, z, new Color(1, 0, 0, 0));
}
}
}
for (var x = 0; x < size.x; x++)
for (var y = 0; y < size.y; y++)
for (var z = 0; z < size.z; z++)
vField.SetPixel(x, y, z, new Color(1, 0, 0, 0));
//vField.SetPixel(0, 0, 0, new Color(1, 0, 0, 0));
effect.SetTexture("VectorField", vField);
}
// Update is called once per frame
void Update()
private void Update()
{
}
}
}