public Single(Vector3 position, Vector3 direction, MeshParticleSystemManager meshParticleSystem) { this._position = position; this._direction = direction; this._meshParticleSystem = meshParticleSystem; _quadSize = new Vector3(0.2f, 0.2f); _rotation = Random.Range(0, 360f); _moveSpeed = Random.Range(5f, 7f); _uvIndex = Random.Range(0, 8); _quadIndex = meshParticleSystem.AddQuad(position, _rotation, _quadSize, false, _uvIndex); }
public Single(Vector3 position, Vector3 direction, MeshParticleSystemManager meshParticleSystem, int uvIndex) { this._position = position; this._direction = direction; this._meshParticleSystem = meshParticleSystem; //_quadSize = new Vector3(0.03f, 0.05f); _quadSize = new Vector3(0.09f, 0.09f); _rotation = Random.Range(0, 360f); _moveSpeed = Random.Range(1f, 3f); _uvIndex = uvIndex; _quadIndex = meshParticleSystem.AddQuad(position, _rotation, _quadSize, true, _uvIndex); }
private void Awake() { Instance = this; _meshParticleSystem = GetComponent <MeshParticleSystemManager>(); _singleList = new List <Single>(); }