Ejemplo n.º 1
0
    void Start()
    {
        spray.Stop();
        meshFilter = canvasObject.GetComponent <MeshFilter>();

        if (canvasObject == null)
        {
            canvasObject = FindObjectOfType <InkCanvas>();
        }
        if (inputManager != null)
        {
            inputManager = FindObjectOfType <InputManager>();
        }
        if (hudManager == null)
        {
            hudManager = FindObjectOfType <HUDManager>();
        }
        totalTriangles = meshFilter.mesh.triangles.Length / 3;
    }