Beispiel #1
0
    private void setTrafficWay(TRAFFIC_WAY way, bool playAni = true)
    {
        curTrafficWay = way;
        Image img = trafficImg.GetComponent <Image> ();

        img.sprite = trafficSprite [(int)way];

        for (int index = 0; index < dotList.Length; index++)
        {
            float scale = ((int)way == index) ? 1.5f:1.0f;

            LeanTween.scale(dotList [index], Vector3.one * scale, tweenSec);
        }
    }
Beispiel #2
0
 public void setTrafficWay(TRAFFIC_WAY way)
 {
     trafficWay = way;
 }