Ejemplo n.º 1
0
        public override void BuildMesh()
        {
            BCapsuleShape cs = this.GetParent <Unit>().GetComponent <BCapsuleShape>();

            cs.Height = this.height;
            cs.Radius = this.radius;
            cs.UpAxis = this.upAxis;
        }
Ejemplo n.º 2
0
        public override void BuildMesh()
        {
            GetComponent <MeshFilter>().sharedMesh = meshSettings.Build();
            BCapsuleShape cs = GetComponent <BCapsuleShape>();

            cs.Height = meshSettings.height;
            cs.Radius = meshSettings.radius;
            cs.UpAxis = meshSettings.upAxis;
        }
 private void OnEnable()
 {
     script = (BCapsuleShape)target;
     //GetSerializedProperties();
 }
 void Start()
 {
     capsule = GetComponent <BCapsuleShape>();
 }