Exemple #1
0
    public PointerController CreatePointer(Transform target, Color color, float visibleDistance)
    {
        PointerController pointerController = Instantiate(pointer, transform).GetComponent <PointerController>();

        pointerController.SetTarget(target);
        pointerController.SetVisibleDistance(visibleDistance);
        pointerController.SetColor(color);
        return(pointerController);
    }