[TASK] Initial commit with basic product setup

This commit is contained in:
2019-08-18 13:50:14 +02:00
commit 01a66a8e1f
2548 changed files with 167528 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Mapbox.Examples
{
public class TrafficUvAnimator : MonoBehaviour
{
public Material[] Materials;
public float Speed;
private Vector2 _offset;
void Start()
{
}
void Update()
{
_offset.Set(_offset.x + Time.deltaTime * Speed, 0.2f);
foreach (var item in Materials)
{
item.SetTextureOffset("_MainTex", _offset);
}
}
}
}