Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     growth       = 1f;
     growthspeed  = growth;
     acceleration = 2.0f;
     findModel    = this.gameObject.AddComponent <FindModels>();
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        currentActiveModel = "";

        //trenger FindModels komponent for å ta i bruk FindModels-skriptet
        findModel = this.gameObject.AddComponent <FindModels>();
    }
Exemplo n.º 3
0
    // 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>();
    }
Exemplo n.º 4
0
    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>();
    }
Exemplo n.º 5
0
 void Start()
 {
     //must have refereanse to class through component added here
     findModel = this.gameObject.AddComponent <FindModels>();
 }