Exemple #1
0
    public override void PrepareToSim()
    {
        Source sourse = schemeObject.boardObject.GetComponent <Source>();

        sourse.GetComponent <BoxCollider>().enabled = false;
        Tuner t = sourse.GetComponentInChildren <Tuner>();

        t.min = sourse.min;
        t.max = sourse.max;
        t.GetDelta();
        t.enabled = true;
        t.GetComponent <CapsuleCollider>().enabled = true;
    }