Question : Unity Scale per code ändern
Answered by : herzog-hydra
using UnityEngine; using System.Collections; public class GetLonger : MonoBehaviour { void OnCollisionEnter(Collision col){ if(col.gameObject.name == "Biggerer"{ col.gameObject.transform.localScale += new Vector3(1, 0, 1); } } }
Source : | Last Update : Wed, 18 May 22