示例#1
0
 public void Build()
 {
     if (build)
     {
         throw new System.Exception("Build Error !");
     }
     this.manager.AddBox(true, 0f, 0f, mw, thick, 0, density.Get());
     this.manager.AddBox(true, 0f, mh, mw, thick, 0, density.Get());
     this.manager.AddBox(true, 0f, 0f, thick, mh, 0, density.Get());
     this.manager.AddBox(true, mw, 0f, thick, mh, 0, density.Get());
     this.build = true;
 }
示例#2
0
    public override void InnerBeginn()
    {
        health = target.Get();

        min = minDistance.Get();
        max = maxDistance.Get();

        distanceFactor = (max + min) * 0.5f;
    }