示例#1
0
    // Use this for initialization
    void Start()
    {
        startCap = MakeSphereHemisphere.GenerateHemisphere(HeadSize, 1, true, Quaternion.Euler(-90, 0, 0));
        tube     = MakeTube.GenerateTube(1, HeadSize, 1, true);
        endCap   = MakeSphereHemisphere.GenerateHemisphere(HeadSize, 1, true, Quaternion.Euler(90, 0, 0));

        StartCoroutine(AnimateStart(0));
    }
示例#2
0
    private void Start()
    {
        startCap = MakeSphereHemisphere.GenerateHemisphere(1, 1, true, Quaternion.Euler(-90, 0, 0));
        startCap.GetComponent <MeshRenderer>().material = Material;
        startCap.transform.parent = PipeParent.transform;

        tube = MakeTube.GenerateTube(1, 1, 1, true);
        tube.GetComponent <MeshRenderer>().material = Material;
        tube.transform.parent = PipeParent.transform;

        endCap = MakeSphereHemisphere.GenerateHemisphere(1, 1, true, Quaternion.Euler(90, 0, 0));
        endCap.GetComponent <MeshRenderer>().material = Material;
        endCap.transform.parent = PipeParent.transform;

        ResetParts(Vector3.zero, Quaternion.identity, false, false, false);
        StartCoroutine(AnimatePipe());
    }