// Use this for initialization void Start() { growth = 1f; growthspeed = growth; acceleration = 2.0f; findModel = this.gameObject.AddComponent <FindModels>(); }
// Use this for initialization void Start() { currentActiveModel = ""; //trenger FindModels komponent for å ta i bruk FindModels-skriptet findModel = this.gameObject.AddComponent <FindModels>(); }
// Use this for initialization void Start() { acceleration = 2.0f; moveSpeed = 1; //trenger FindModels komponent for å ta i bruk FindModels-skriptet findModel = this.gameObject.AddComponent <FindModels>(); }
FindModels findModel; //Finner aktiv modell ved hjelp av denne // Use this for initialization void Start() { //setter verdier til tekst intensityText.text = intensity.ToString("#.##"); spotAngleText.text = spotAngle.ToString("#.##"); rangeText.text = range.ToString("#.##"); //trenger FindModels komponent for å ta i bruk skriptet findModel = this.gameObject.AddComponent <FindModels>(); }
void Start() { //must have refereanse to class through component added here findModel = this.gameObject.AddComponent <FindModels>(); }