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); } }
public void setTrafficWay(TRAFFIC_WAY way) { trafficWay = way; }